diff --git a/src/controllers/DevelopmentController.ts b/src/controllers/DevelopmentController.ts index f16c607..3c67c1a 100644 --- a/src/controllers/DevelopmentController.ts +++ b/src/controllers/DevelopmentController.ts @@ -2096,7 +2096,8 @@ export class DevelopmentController extends Controller { _data.child1 != undefined && _data.child1 != null ? _data.child1[0] != null ? `development.child1DnaId IN (:...child1)` - : `development.child1DnaId is ${_data.privilege == "PARENT" ? "not null" : "null"}` + // : `development.child1DnaId is ${_data.privilege == "PARENT" ? "not null" : "null"}` + : `development.child1DnaId is null` : "1=1", { child1: _data.child1, diff --git a/src/interfaces/permission.ts b/src/interfaces/permission.ts index a47c923..8705603 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,