fix brother

This commit is contained in:
harid 2026-02-27 18:22:40 +07:00
parent 0500f4410d
commit cea5df989d

View file

@ -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") {