make user.editGroups depending on viewHiddenGroups (#2880)

should resolve #2610
This commit is contained in:
Ornanovitch 2021-08-10 15:52:34 +02:00 committed by GitHub
parent 50eea40edf
commit 46d1c8e922

View File

@ -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;
}