no message
This commit is contained in:
parent
9991b3c8ce
commit
d220430325
4 changed files with 62 additions and 44 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue