diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index e213542..14d74e3 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -2300,7 +2300,8 @@ export class SalaryPeriodController extends Controller { _data.child1 != undefined && _data.child1 != null ? _data.child1[0] != null ? `child1Id IN (:...child1)` - : `child1Id is ${_data.privilege == "PARENT" ? "not null" : "null"}` + // : `child1Id is ${_data.privilege == "PARENT" ? "not null" : "null"}` + : `child1Id is null` : "1=1", { child1: _data.child1, diff --git a/src/interfaces/permission.ts b/src/interfaces/permission.ts index da284d2..a870688 100644 --- a/src/interfaces/permission.ts +++ b/src/interfaces/permission.ts @@ -96,8 +96,10 @@ class CheckAuth { }; } else if (privilege == "PARENT") { data = { - root: [x.orgRootId], - child1: [null], + // root: [x.orgRootId], + // child1: [null], + root: null, + child1: null, child2: null, child3: null, child4: null,