แก้ไขสิทธิ์ PARENT ให้เห็นข้อมูลทั้งหมดทุกหน่วยงาน #54

This commit is contained in:
harid 2026-02-19 15:17:51 +07:00
parent bab55389dc
commit bfa3080818
2 changed files with 6 additions and 3 deletions

View file

@ -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,

View file

@ -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,