From bcdb1ac7397bf1e869786bd7fdc8e23d5bdc61e0 Mon Sep 17 00:00:00 2001 From: mamoss <> Date: Thu, 29 May 2025 10:45:21 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=AB=E0=B8=B2=E0=B8=9C=E0=B8=B9=E0=B9=89?= =?UTF-8?q?=E0=B8=A1=E0=B8=B5=E0=B8=AD=E0=B8=B3=E0=B8=99=E0=B8=B2=E0=B8=88?= =?UTF-8?q?=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/WorkflowController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/WorkflowController.ts b/src/controllers/WorkflowController.ts index 300d9289..ea55ecf2 100644 --- a/src/controllers/WorkflowController.ts +++ b/src/controllers/WorkflowController.ts @@ -863,7 +863,7 @@ export class WorkflowController extends Controller { orgChild1Id: IsNull(), }; - if (type.trim().toUpperCase() == "OPERATE") { + if (type.trim().toUpperCase() == "OPERATE" || body.type == "employee") { condition.push({ isDirector: true, orgRootId: posMasterUser.orgRootId,