diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 26f5a20f..4aa78e2b 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -3429,10 +3429,10 @@ export class ProfileController extends Controller { }, relations: ["orgChild1"], }); - if (!posMasters) { + if (posMasters == null || posMasters.orgRoot == null) { return new HttpSuccess(false); } - return new HttpSuccess(posMasters.orgChild1.isOfficer); + return new HttpSuccess(posMasters); } /**