only show "show all statuses" if user has privilege
This commit is contained in:
parent
04d1741c80
commit
8b3bdd2191
1 changed files with 2 additions and 1 deletions
|
|
@ -274,7 +274,8 @@ const ModerationTools = {
|
||||||
|
|
||||||
switch (group) {
|
switch (group) {
|
||||||
case 'action':
|
case 'action':
|
||||||
return true
|
if (name === 'statuses') return this.privileged('users_read')
|
||||||
|
else return true
|
||||||
case 'rights':
|
case 'rights':
|
||||||
return this.canGrantRole(name, value)
|
return this.canGrantRole(name, value)
|
||||||
case 'state':
|
case 'state':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue