From 24038b95971845513b249a7cd6dcafdb24a3667f Mon Sep 17 00:00:00 2001 From: kittapath Date: Tue, 5 Nov 2024 14:56:14 +0700 Subject: [PATCH] add director --- src/controllers/WorkflowController.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controllers/WorkflowController.ts b/src/controllers/WorkflowController.ts index 8e2e193e..8d74ea84 100644 --- a/src/controllers/WorkflowController.ts +++ b/src/controllers/WorkflowController.ts @@ -883,7 +883,11 @@ export class WorkflowController extends Controller { }); if (!profileOfficer) return new HttpSuccess({ isOfficer: false, isStaff: false }); let isOfficer = profileOfficer.orgChild1 == null ? false : profileOfficer.orgChild1.isOfficer; - return new HttpSuccess({ isOfficer: isOfficer, isStaff: !isOfficer }); + return new HttpSuccess({ + isOfficer: isOfficer, + isStaff: !isOfficer, + isDirector: profileOfficer.isDirector, + }); } /**