瀏覽代碼

added root to admin roles

bach 2 年之前
父節點
當前提交
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;