From 251e87d2b25b7bb45ccfe17e7d108d3bd6c8b96f Mon Sep 17 00:00:00 2001 From: harid Date: Fri, 20 Mar 2026 13:26:39 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=96=E0=B9=89=E0=B8=B2=20USER=20?= =?UTF-8?q?=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99=20STAFF=20=E0=B8=88?= =?UTF-8?q?=E0=B8=B6=E0=B8=87=E0=B8=88=E0=B8=B0=E0=B8=81=E0=B8=A3=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=AA=E0=B8=B4=E0=B8=97=E0=B8=98=E0=B8=B4=E0=B9=8C?= =?UTF-8?q?=20#2359?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/CommandController.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index f21473c4..016b4768 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -198,20 +198,10 @@ export class CommandController extends Controller { child3: null, child4: null, }; - if (!request.user.role.includes("SUPER_ADMIN")) { + if (request.user.role.includes("STAFF")) { _data = await new permission().PermissionOrgList(request, "COMMAND"); } 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 .createQueryBuilder("profile") .leftJoinAndSelect("profile.current_holders", "current_holders")