added root to admin roles

This commit is contained in:
Bachir Soussi Chiadmi 2023-03-10 11:58:00 +01:00
parent 6776b8f1d8
commit bfd613da88

View File

@ -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;