refactor: enhance role-based access checks in TreeComponent and MainPage components
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s

This commit is contained in:
puriphatt 2025-07-02 15:53:20 +07:00
parent 8799799214
commit 701b90d89a
2 changed files with 29 additions and 3 deletions

View file

@ -123,7 +123,13 @@ defineEmits<{
v-if="
node.isHeadOffice &&
typeTree === 'branch' &&
isRoleInclude(['head_of_admin', 'admin', 'system'])
isRoleInclude([
'system',
'head_of_admin',
'admin',
'executive',
'accountant',
])
"
:id="`create-sub-branch-btn-${node.name}`"
@click.stop="$emit('create', node)"