Skip to content
Snippets Groups Projects
Commit 6ba45e2f authored by Maz Ameli's avatar Maz Ameli
Browse files

Merge branch 'propagate-collections-perms' of github.com:metabase/metabase...

Merge branch 'propagate-collections-perms' of github.com:metabase/metabase into propagate-collections-perms
parents 31fd1bc9 47698d2d
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