fix brother
This commit is contained in:
parent
0500f4410d
commit
cea5df989d
1 changed files with 20 additions and 5 deletions
|
|
@ -137,11 +137,26 @@ class CheckAuth {
|
||||||
child2: node >= 3 ? [x.orgChild2Id] : null,
|
child2: node >= 3 ? [x.orgChild2Id] : null,
|
||||||
child3: node >= 4 ? [x.orgChild3Id] : null,
|
child3: node >= 4 ? [x.orgChild3Id] : null,
|
||||||
*/
|
*/
|
||||||
root: minLevel <= 0 ? [x.orgRootId] : null,
|
root:
|
||||||
child1: minLevel <= 1 ? [x.orgChild1Id] : null,
|
minLevel <= 0 && x.orgRootId
|
||||||
child2: minLevel <= 2 ? [x.orgChild2Id] : null,
|
? [x.orgRootId]
|
||||||
child3: minLevel <= 3 ? [x.orgChild3Id] : null,
|
: null,
|
||||||
child4: minLevel <= 4 ? [x.orgChild4Id] : null,
|
child1:
|
||||||
|
minLevel <= 1 && x.orgChild1Id
|
||||||
|
? [x.orgChild1Id]
|
||||||
|
: null,
|
||||||
|
child2:
|
||||||
|
minLevel <= 2 && x.orgChild2Id
|
||||||
|
? [x.orgChild2Id]
|
||||||
|
: null,
|
||||||
|
child3:
|
||||||
|
minLevel <= 3 && x.orgChild3Id
|
||||||
|
? [x.orgChild3Id]
|
||||||
|
: null,
|
||||||
|
child4:
|
||||||
|
minLevel <= 4 && x.orgChild4Id
|
||||||
|
? [x.orgChild4Id]
|
||||||
|
: null,
|
||||||
privilege: "BROTHER",
|
privilege: "BROTHER",
|
||||||
};
|
};
|
||||||
} else if (privilege == "NORMAL") {
|
} else if (privilege == "NORMAL") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue