fix: role owner and system view

This commit is contained in:
puriphatt 2024-08-15 12:34:14 +07:00
parent 8286ea19b9
commit 7d63e2ac2f

View file

@ -15,6 +15,7 @@ const role = ref();
onMounted(async () => {
const uid = getUserId();
role.value = getRole();
console.log(role.value);
if (!uid) return;
@ -40,7 +41,9 @@ onMounted(async () => {
hidden:
role.value.includes('admin') ||
role.value.includes('branch_admin') ||
role.value.includes('head_of_admin')
role.value.includes('head_of_admin') ||
role.value.includes('system') ||
role.value.includes('owner')
? false
: true,
},
@ -51,7 +54,9 @@ onMounted(async () => {
hidden:
role.value.includes('admin') ||
role.value.includes('branch_admin') ||
role.value.includes('head_of_admin')
role.value.includes('head_of_admin') ||
role.value.includes('system') ||
role.value.includes('owner')
? false
: true,
},