This commit is contained in:
Adisak 2026-06-12 10:01:07 +07:00
parent 664f5153da
commit 055e24273d
2 changed files with 19 additions and 1 deletions

View file

@ -65,7 +65,7 @@ export class PermissionProfileController extends Controller {
if (!request.user.role.includes("SUPER_ADMIN")) {
rootId =
orgRevisionActive?.posMasters?.filter((x) => x.next_holderId == profile.id)[0]
orgRevisionActive?.posMasters?.filter((x) => x.current_holderId == profile.id)[0]
?.orgRootId || null;
if (!rootId) return new HttpSuccess([]);
}