From bfa308081810556355363b2a07f108a9a5d50c4c Mon Sep 17 00:00:00 2001 From: harid Date: Thu, 19 Feb 2026 15:17:51 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=AA=E0=B8=B4=E0=B8=97=E0=B8=98=E0=B8=B4=E0=B9=8C=20PARENT?= =?UTF-8?q?=20=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B9=80=E0=B8=AB=E0=B9=87?= =?UTF-8?q?=E0=B8=99=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5?= =?UTF-8?q?=E0=B8=97=E0=B8=B1=E0=B9=89=E0=B8=87=E0=B8=AB=E0=B8=A1=E0=B8=94?= =?UTF-8?q?=E0=B8=97=E0=B8=B8=E0=B8=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=20#54?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/PersonalController.ts | 3 ++- src/interfaces/permission.ts | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/controllers/PersonalController.ts b/src/controllers/PersonalController.ts index df08278..b8845da 100644 --- a/src/controllers/PersonalController.ts +++ b/src/controllers/PersonalController.ts @@ -241,7 +241,8 @@ export class PersonalController extends Controller { _data.child1 != undefined && _data.child1 != null ? _data.child1[0] != null ? `personal.child1Dna IN (:...child1)` - : `personal.child1Dna is ${_data.privilege == "PARENT" ? "not null" : "null"}` + // : `personal.child1Dna is ${_data.privilege == "PARENT" ? "not null" : "null"}` + : `personal.child1Dna is null` : "1=1", { child1: _data.child1, diff --git a/src/interfaces/permission.ts b/src/interfaces/permission.ts index c7a9433..771cf12 100644 --- a/src/interfaces/permission.ts +++ b/src/interfaces/permission.ts @@ -109,8 +109,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,