Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(sync): lower requirement for document initialization to edit (#3051)

teo4556478d94f1
diff --git a/rust/sync-service/src/durable_object.rs b/rust/sync-service/src/durable_object.rs
index 83be9e1227..3a6331008f 100644
--- a/rust/sync-service/src/durable_object.rs
+++ b/rust/sync-service/src/durable_object.rs
@@ -318,7 +318,7 @@ impl DocumentSyncSession {
path::SNAPSHOT => return self.snapshot_handler(req, document_id).await,
path::ACTIVE_PEERS_MARKER => return self.active_peer_ids_handler().await,
path::INITIALIZE => {
- or_unauth!(claims.has_permission(&AccessLevel::Owner).then_some(()));
+ or_unauth!(claims.has_permission(&AccessLevel::Edit).then_some(()));
return self.initialize_handler(req, document_id).await;
}
path::DEBUG_DUMP_OPERATIONS => {