fix: Missing permission on selector in permissions dialog

This commit is contained in:
Tom Moor
2023-12-27 12:41:53 -05:00
parent 548a56e058
commit e7fbec91fc
5 changed files with 31 additions and 7 deletions

View File

@@ -87,4 +87,16 @@ export default class CollectionGroupMembershipsStore extends Store<CollectionGro
}
});
};
/**
* Find a collection group membership by collectionId and groupId
*
* @param collectionId The collection ID
* @param groupId The group ID
* @returns The collection group membership or undefined if not found.
*/
find = (collectionId: string, groupId: string) =>
Array.from(this.data.values()).find(
(m) => m.groupId === groupId && m.collectionId === collectionId
);
}