From c991e9e03fc290948ce3269da6d88fcfaeabbe73 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 3 Jul 2025 13:32:21 +0700 Subject: [PATCH] refactor: implement role-based access control for customer edit actions in BranchPage and MainPage components --- .../03_customer-management/BranchPage.vue | 8 ++++---- src/pages/03_customer-management/MainPage.vue | 19 +++++++++++++++---- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/pages/03_customer-management/BranchPage.vue b/src/pages/03_customer-management/BranchPage.vue index bf1b8fd7..a88d498b 100644 --- a/src/pages/03_customer-management/BranchPage.vue +++ b/src/pages/03_customer-management/BranchPage.vue @@ -9,7 +9,7 @@ import { baseUrl } from 'src/stores/utils'; import useCustomerStore from 'stores/customer'; import useFlowStore from 'stores/flow'; import useOptionStore from 'stores/options'; -import { dialog } from 'stores/utils'; +import { dialog, canAccess } from 'stores/utils'; import { Status } from 'stores/types'; import { Employee } from 'stores/employee/types'; @@ -285,7 +285,7 @@ watch(