fix ถ้า USER เป็น STAFF จึงจะกรองสิทธิ์ #2359
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m18s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m18s
This commit is contained in:
parent
866afe5ee1
commit
251e87d2b2
1 changed files with 1 additions and 11 deletions
|
|
@ -198,20 +198,10 @@ export class CommandController extends Controller {
|
||||||
child3: null,
|
child3: null,
|
||||||
child4: null,
|
child4: null,
|
||||||
};
|
};
|
||||||
if (!request.user.role.includes("SUPER_ADMIN")) {
|
if (request.user.role.includes("STAFF")) {
|
||||||
_data = await new permission().PermissionOrgList(request, "COMMAND");
|
_data = await new permission().PermissionOrgList(request, "COMMAND");
|
||||||
}
|
}
|
||||||
if (isDirector || _data.privilege == "OWNER") {
|
if (isDirector || _data.privilege == "OWNER") {
|
||||||
// let _data: any = {
|
|
||||||
// root: null,
|
|
||||||
// child1: null,
|
|
||||||
// child2: null,
|
|
||||||
// child3: null,
|
|
||||||
// child4: null,
|
|
||||||
// };
|
|
||||||
// if (!request.user.role.includes("SUPER_ADMIN")) {
|
|
||||||
// _data = await new permission().PermissionOrgList(request, "COMMAND");
|
|
||||||
// }
|
|
||||||
const profiles = await this.profileRepository
|
const profiles = await this.profileRepository
|
||||||
.createQueryBuilder("profile")
|
.createQueryBuilder("profile")
|
||||||
.leftJoinAndSelect("profile.current_holders", "current_holders")
|
.leftJoinAndSelect("profile.current_holders", "current_holders")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue