add parent

This commit is contained in:
mamoss 2025-10-07 11:14:00 +07:00
parent 4c16c9859a
commit fd17f366b8
6 changed files with 164 additions and 366 deletions

View file

@ -732,6 +732,14 @@ export class PermissionController extends Controller {
child3: null,
child4: null,
};
} else if (privilege == "PARENT") {
data = {
root: [x.orgRootId],
child1: [x.orgChild1Id],
child2: null,
child3: null,
child4: null,
};
} else if (privilege == "CHILD") {
data = {
root: node >= 0 ? [x.orgRootId] : null,