bach 2 лет назад
Родитель
Сommit
bfd613da88
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/stores/user.js

+ 1 - 1
src/stores/user.js

@@ -156,7 +156,7 @@ export const UserStore = defineStore({
       return GQL.post('', body)
     },
     checkIsAdmin () {
-      const adminroles = ['admin', 'group_admin']
+      const adminroles = ['root', 'admin', 'group_admin']
       for (let r = 0; r < this.roles.length; r++) {
         if (adminroles.indexOf(this.roles[r]) !== -1) {
           this.isAdmin = true;