Apply 2 suggestion(s) to 2 file(s)
This commit is contained in:
parent
ad2689a5eb
commit
f0b1255a3c
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ const NotificationsTab = {
|
||||||
},
|
},
|
||||||
canReceiveReports () {
|
canReceiveReports () {
|
||||||
if (!this.user) { return false }
|
if (!this.user) { return false }
|
||||||
return this.user.privileges?.includes('reports_manage_reports')
|
return this.user.privileges.includes('reports_manage_reports')
|
||||||
},
|
},
|
||||||
...SharedComputedObject()
|
...SharedComputedObject()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ export default {
|
||||||
const privileges = this.loggedIn.privileges
|
const privileges = this.loggedIn.privileges
|
||||||
return this.loggedIn.role === 'admin' ||
|
return this.loggedIn.role === 'admin' ||
|
||||||
privileges.includes('users_manage_activation_state') ||
|
privileges.includes('users_manage_activation_state') ||
|
||||||
privileges.includes('users_delete')||
|
privileges.includes('users_delete') ||
|
||||||
privileges.includes('users_manage_tags')
|
privileges.includes('users_manage_tags')
|
||||||
},
|
},
|
||||||
hasNote () {
|
hasNote () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue