list command

This commit is contained in:
kittapath 2024-10-10 11:12:31 +07:00
parent e43c29dbc4
commit 0119ff5722
4 changed files with 350 additions and 64 deletions

View file

@ -83,7 +83,16 @@ class CheckAuth {
} else if (x.orgChild4Id == null) {
node = 3;
}
if (privilege == "ROOT") {
if (privilege == "OWNER") {
data = {
root: null,
child1: null,
child2: null,
child3: null,
child4: null,
privilege: "OWNER",
};
} else if (privilege == "ROOT") {
data = {
root: [x.orgRootId],
child1: null,
@ -111,15 +120,6 @@ class CheckAuth {
privilege: "NORMAL",
};
} else if (privilege == "SPECIFIC") {
} else if (privilege == "OWNER") {
data = {
root: null,
child1: null,
child2: null,
child3: null,
child4: null,
privilege: "OWNER",
};
}
return data;