Skip to content

Commit d6f79fa

Browse files
rrwang7Convex, Inc.
authored andcommitted
make big brain -> backend calls to request a cloud backup (#29841)
GitOrigin-RevId: f6fb27016b8f7a315117996b8cc840f57cea8901
1 parent e182513 commit d6f79fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/application/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,10 @@ impl<RT: Runtime> Application<RT> {
12831283
component: ComponentId,
12841284
requestor: ExportRequestor,
12851285
) -> anyhow::Result<()> {
1286-
anyhow::ensure!(identity.is_admin(), unauthorized_error("request_export"));
1286+
anyhow::ensure!(
1287+
identity.is_admin() || identity.is_system(),
1288+
unauthorized_error("request_export")
1289+
);
12871290
let snapshot = self.latest_snapshot()?;
12881291
let user_table_count = snapshot.table_registry.user_table_names().count();
12891292
if user_table_count == 0 {

0 commit comments

Comments
 (0)