feat: Adds permission selector in document/collection invite flow (#6948)

* stash

* fix: Permissions cleared on collection addition
fix: Cannot remove user from document
Allow choosing permission in invite flow
This commit is contained in:
Tom Moor
2024-05-26 12:45:53 -04:00
committed by GitHub
parent 88eae87404
commit e3837f6ad5
7 changed files with 111 additions and 39 deletions

View File

@@ -416,12 +416,12 @@ class WebsocketProvider extends React.Component<Props> {
await collections.fetch(event.collectionId, {
force: true,
});
}
// Document policies might need updating as the permission changes
documents.inCollection(event.collectionId).forEach((document) => {
policies.remove(document.id);
});
// Document policies might need updating as the permission changes
documents.inCollection(event.collectionId).forEach((document) => {
policies.remove(document.id);
});
}
}
);