Skip to content

Commit

Permalink
make user.editGroups depending on viewHiddenGroups (#2880)
Browse files Browse the repository at this point in the history
should resolve #2610
  • Loading branch information
Ornanovitch authored Aug 10, 2021
1 parent 9490b3d commit 13d302b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/src/admin/AdminApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export default class AdminApplication extends Application {
if (permission === 'discussion.deletePosts') {
required.push('discussion.hidePosts');
}
if (permission === 'user.editGroups') {
required.push('viewHiddenGroups');
}

return required;
}
Expand Down

0 comments on commit 13d302b

Please sign in to comment.