แก้ไขสิทธิ์ PARENT ให้เห็นข้อมูลทั้งหมดทุกหน่วยงาน #54
This commit is contained in:
parent
ae08fffa70
commit
b2e280057c
2 changed files with 6 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue