Skip to content
Snippets Groups Projects
Commit 47698d2d authored by Tom Robinson's avatar Tom Robinson
Browse files

Filter subcollections of personal collections when propagating collection permissions

parent 91e2535b
Branches
Tags
No related merge requests found
......@@ -839,9 +839,10 @@ export const getCollectionsPermissionsGrid = createSelector(
);
function getDecendentCollections(collection) {
return collection.children
.concat(...collection.children.map(getDecendentCollections))
.filter(permissionsCollectionFilter);
const subCollections = collection.children.filter(
permissionsCollectionFilter,
);
return subCollections.concat(...subCollections.map(getDecendentCollections));
}
function getPermissionsSet(collections, permissions, groupId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment