Update collection permissions UI (#6917)

This commit is contained in:
Tom Moor
2024-05-16 19:45:09 -04:00
committed by GitHub
parent 728c68be58
commit cae013837b
34 changed files with 1088 additions and 287 deletions

View File

@@ -104,6 +104,9 @@ export default class SharesStore extends Store<Share> {
return undefined;
};
getByCollectionId = (collectionId: string): Share | null | undefined =>
find(this.orderedData, (share) => share.collectionId === collectionId);
getByDocumentId = (documentId: string): Share | null | undefined =>
find(this.orderedData, (share) => share.documentId === documentId);
}