fix privileges.includes
This commit is contained in:
parent
00afd8fa7e
commit
5f2efc564a
2 changed files with 4 additions and 4 deletions
|
|
@ -35,7 +35,7 @@ const AnnouncementsPage = {
|
||||||
canPostAnnouncement() {
|
canPostAnnouncement() {
|
||||||
return (
|
return (
|
||||||
this.currentUser &&
|
this.currentUser &&
|
||||||
this.currentUser.privileges.includes(
|
this.currentUser.privileges.has(
|
||||||
'announcements_manage_announcements',
|
'announcements_manage_announcements',
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -307,9 +307,9 @@ export default {
|
||||||
const privileges = this.loggedIn.privileges
|
const privileges = this.loggedIn.privileges
|
||||||
return (
|
return (
|
||||||
this.loggedIn.role === 'admin' ||
|
this.loggedIn.role === 'admin' ||
|
||||||
privileges.includes('users_manage_activation_state') ||
|
privileges.has('users_manage_activation_state') ||
|
||||||
privileges.includes('users_delete') ||
|
privileges.has('users_delete') ||
|
||||||
privileges.includes('users_manage_tags')
|
privileges.has('users_manage_tags')
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
hasNote() {
|
hasNote() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue