added root to admin roles
This commit is contained in:
parent
6776b8f1d8
commit
bfd613da88
@ -156,7 +156,7 @@ export const UserStore = defineStore({
|
|||||||
return GQL.post('', body)
|
return GQL.post('', body)
|
||||||
},
|
},
|
||||||
checkIsAdmin () {
|
checkIsAdmin () {
|
||||||
const adminroles = ['admin', 'group_admin']
|
const adminroles = ['root', 'admin', 'group_admin']
|
||||||
for (let r = 0; r < this.roles.length; r++) {
|
for (let r = 0; r < this.roles.length; r++) {
|
||||||
if (adminroles.indexOf(this.roles[r]) !== -1) {
|
if (adminroles.indexOf(this.roles[r]) !== -1) {
|
||||||
this.isAdmin = true;
|
this.isAdmin = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user