Browse Source

added root to admin roles

bach 2 năm trước cách đây
mục cha
commit
bfd613da88
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;