no message

This commit is contained in:
kittapath 2024-11-21 15:39:38 +07:00
parent 9991b3c8ce
commit d220430325
4 changed files with 62 additions and 44 deletions

View file

@ -1755,7 +1755,11 @@ export class ProfileEmployeeTempController extends Controller {
},
});
if (!profile) {
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");
if (request.user.role.includes("SUPER_ADMIN")) {
return new HttpSuccess(null);
} else {
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");
}
}
let orgRevisionPublish: any = await this.orgRevisionRepo