From ced55b95182bc9db02a6090e015a805f41d235c4 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 4 Jul 2025 13:26:26 +0700 Subject: [PATCH] feat: allow sale to manage --- src/controllers/03-customer-branch-controller.ts | 2 ++ src/controllers/03-customer-controller.ts | 2 ++ src/controllers/03-employee-checkup-controller.ts | 2 ++ src/controllers/03-employee-controller.ts | 2 ++ src/controllers/03-employee-other-info-controller.ts | 2 ++ src/controllers/03-employee-passport-controller.ts | 2 ++ src/controllers/03-employee-visa-controller.ts | 2 ++ src/controllers/03-employee-work-controller.ts | 2 ++ src/controllers/04-invoice-controller.ts | 2 ++ src/controllers/05-payment-controller.ts | 2 ++ src/controllers/05-quotation-controller.ts | 2 ++ 11 files changed, 22 insertions(+) diff --git a/src/controllers/03-customer-branch-controller.ts b/src/controllers/03-customer-branch-controller.ts index 529700b..61852ad 100644 --- a/src/controllers/03-customer-branch-controller.ts +++ b/src/controllers/03-customer-branch-controller.ts @@ -52,6 +52,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/03-customer-controller.ts b/src/controllers/03-customer-controller.ts index bfc327d..a52ea71 100644 --- a/src/controllers/03-customer-controller.ts +++ b/src/controllers/03-customer-controller.ts @@ -47,6 +47,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/03-employee-checkup-controller.ts b/src/controllers/03-employee-checkup-controller.ts index 71ceafd..cb3c8ee 100644 --- a/src/controllers/03-employee-checkup-controller.ts +++ b/src/controllers/03-employee-checkup-controller.ts @@ -28,6 +28,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/03-employee-controller.ts b/src/controllers/03-employee-controller.ts index 797a994..add8a8f 100644 --- a/src/controllers/03-employee-controller.ts +++ b/src/controllers/03-employee-controller.ts @@ -56,6 +56,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/03-employee-other-info-controller.ts b/src/controllers/03-employee-other-info-controller.ts index bc85efc..3624f95 100644 --- a/src/controllers/03-employee-other-info-controller.ts +++ b/src/controllers/03-employee-other-info-controller.ts @@ -28,6 +28,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/03-employee-passport-controller.ts b/src/controllers/03-employee-passport-controller.ts index 1d17e07..e0b1769 100644 --- a/src/controllers/03-employee-passport-controller.ts +++ b/src/controllers/03-employee-passport-controller.ts @@ -27,6 +27,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/03-employee-visa-controller.ts b/src/controllers/03-employee-visa-controller.ts index a5af041..358a293 100644 --- a/src/controllers/03-employee-visa-controller.ts +++ b/src/controllers/03-employee-visa-controller.ts @@ -27,6 +27,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/03-employee-work-controller.ts b/src/controllers/03-employee-work-controller.ts index 7671c2a..8bbfdca 100644 --- a/src/controllers/03-employee-work-controller.ts +++ b/src/controllers/03-employee-work-controller.ts @@ -27,6 +27,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/04-invoice-controller.ts b/src/controllers/04-invoice-controller.ts index ffac9d1..2033898 100644 --- a/src/controllers/04-invoice-controller.ts +++ b/src/controllers/04-invoice-controller.ts @@ -38,6 +38,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/05-payment-controller.ts b/src/controllers/05-payment-controller.ts index 63b0689..01b4c31 100644 --- a/src/controllers/05-payment-controller.ts +++ b/src/controllers/05-payment-controller.ts @@ -35,6 +35,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) { diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 140994b..ccce491 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -155,6 +155,8 @@ const MANAGE_ROLES = [ "branch_admin", "branch_manager", "branch_accountant", + "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) {