better approach to missing privileges
This commit is contained in:
parent
96c57a8ada
commit
70c89b0cb9
7 changed files with 9 additions and 9 deletions
|
|
@ -59,7 +59,7 @@ const ModerationTools = {
|
|||
return this.tagsSet.has(tagName)
|
||||
},
|
||||
privileged (privilege) {
|
||||
return this.$store.state.users.currentUser.privileges?.includes(privilege)
|
||||
return this.$store.state.users.currentUser.privileges.includes(privilege)
|
||||
},
|
||||
toggleTag (tag) {
|
||||
const store = this.$store
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue