mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
make user.editGroups depending on viewHiddenGroups (#2880)
should resolve #2610
This commit is contained in:
parent
50eea40edf
commit
46d1c8e922
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user