From ed2b3a5a4110616f7277e0c1897b74addbecba1a Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Mon, 9 Sep 2024 11:13:53 +0700 Subject: [PATCH] feat: allow sale to manage self branch --- src/controllers/03-customer-branch-controller.ts | 1 + src/controllers/03-customer-controller.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/controllers/03-customer-branch-controller.ts b/src/controllers/03-customer-branch-controller.ts index 9d61ae1..9b3bff3 100644 --- a/src/controllers/03-customer-branch-controller.ts +++ b/src/controllers/03-customer-branch-controller.ts @@ -32,6 +32,7 @@ const MANAGE_ROLES = [ "head_of_account", "account", "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 4ccf5e2..6b764da 100644 --- a/src/controllers/03-customer-controller.ts +++ b/src/controllers/03-customer-controller.ts @@ -32,6 +32,7 @@ const MANAGE_ROLES = [ "head_of_account", "account", "head_of_sale", + "sale", ]; function globalAllow(user: RequestWithUser["user"]) {