add director

This commit is contained in:
kittapath 2024-11-05 14:56:14 +07:00
parent 9e65b57fdf
commit 24038b9597

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