แก้ สิทธิ์ให้ค้นไวขึ้น

This commit is contained in:
kittapath 2024-09-06 15:24:56 +07:00
parent 91c3b96df9
commit 93fc8cfd53
3 changed files with 334 additions and 39 deletions

View file

@ -3577,12 +3577,12 @@ export class OrganizationController extends Controller {
// child3: null,
// child4: null,
// };
// if (!request.user.role.includes("SUPER_ADMIN")) {
// _data = await new permission().PermissionOrgList(request, "SYS_ACTING");
// }
await new permission().PermissionOrgList(request, "SYS_ACTING");
const orgRevision = await this.orgRevisionRepository.findOne({ where: { id } });
if (!orgRevision) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");