refactor: Check role
This commit is contained in:
parent
e7bd54156d
commit
762fcd84b2
2 changed files with 4 additions and 2 deletions
|
|
@ -55,7 +55,8 @@ onMounted(async () => {
|
|||
role.value.includes('branch_admin') ||
|
||||
role.value.includes('head_of_admin') ||
|
||||
role.value.includes('system') ||
|
||||
role.value.includes('owner')
|
||||
role.value.includes('owner') ||
|
||||
role.value.includes('branch_manager')
|
||||
? false
|
||||
: true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -40,7 +40,8 @@ onMounted(() => {
|
|||
role.value.includes('branch_admin') ||
|
||||
role.value.includes('head_of_admin') ||
|
||||
role.value.includes('system') ||
|
||||
role.value.includes('owner')
|
||||
role.value.includes('owner') ||
|
||||
role.value.includes('branch_manager')
|
||||
? false
|
||||
: true,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue