Merge branch 'develop' into adiDev

This commit is contained in:
AdisakKanthawilang 2024-11-05 15:37:19 +07:00
commit 458fb90187

View file

@ -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,
});
}
/**