Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(dss): update UserItemAccess for user who shared item (#717)
Will Hutchinson09441dbb2c51
diff --git a/rust/cloud-storage/document_storage_service/src/api/channel/update_channel_share_permission.rs b/rust/cloud-storage/document_storage_service/src/api/channel/update_channel_share_permission.rsindex 977f4187ba..e720bdd964 100644--- a/rust/cloud-storage/document_storage_service/src/api/channel/update_channel_share_permission.rs+++ b/rust/cloud-storage/document_storage_service/src/api/channel/update_channel_share_permission.rs@@ -145,8 +145,11 @@ pub async fn handler(.into_response()})?.into_iter()- .filter(|p| p.user_id != req.user_id.0.as_ref() && p.left_at.is_none())- .map(|p| p.user_id)+ .filter_map(|p| match p.left_at {+ // If the user left we should not update their user item access+ Some(_) => None,+ None => Some(p.user_id)+ }).collect::<Vec<_>>();