소스 검색

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;