lint
This commit is contained in:
parent
3c69936fc7
commit
002b97295d
6 changed files with 14 additions and 14 deletions
|
|
@ -407,16 +407,13 @@ const ModerationTools = {
|
|||
},
|
||||
isAdmin() {
|
||||
this.$store.state.users.currentUser.role === 'admin'
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
canGrantRole(name, value) {
|
||||
const setEntry = `${value ? '!' : ''}rights:${name}`
|
||||
|
||||
return (
|
||||
this.isAdmin &&
|
||||
this.totalSet.has(setEntry)
|
||||
)
|
||||
return this.isAdmin && this.totalSet.has(setEntry)
|
||||
},
|
||||
canChangeState(name, value) {
|
||||
const setEntry = `${value ? '!' : ''}state:${name}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue