better approach to missing privileges
This commit is contained in:
parent
96c57a8ada
commit
70c89b0cb9
7 changed files with 9 additions and 9 deletions
|
|
@ -135,9 +135,9 @@ export default {
|
|||
showModerationMenu () {
|
||||
const privileges = this.loggedIn.privileges
|
||||
return this.loggedIn.role === 'admin' ||
|
||||
privileges?.includes('users_manage_activation_state') ||
|
||||
privileges?.includes('users_delete')||
|
||||
privileges?.includes('users_manage_tags')
|
||||
privileges.includes('users_manage_activation_state') ||
|
||||
privileges.includes('users_delete')||
|
||||
privileges.includes('users_manage_tags')
|
||||
},
|
||||
hasNote () {
|
||||
return this.relationship.note
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue