ปิดสิทธิ์ history ทะเบียนประวัตื (ชน USER)
This commit is contained in:
parent
6d36c9b05f
commit
61176e0595
6 changed files with 30 additions and 30 deletions
|
|
@ -144,14 +144,14 @@ export class ProfileAssessmentsController extends Controller {
|
|||
if (!record) {
|
||||
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
||||
}
|
||||
const _record = await this.profileAssessmentsRepository.findOne({
|
||||
where: {
|
||||
id: assessmentId,
|
||||
},
|
||||
});
|
||||
if (_record) {
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
|
||||
}
|
||||
// const _record = await this.profileAssessmentsRepository.findOne({
|
||||
// where: {
|
||||
// id: assessmentId,
|
||||
// },
|
||||
// });
|
||||
// if (_record) {
|
||||
// await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
|
||||
// }
|
||||
return new HttpSuccess(record);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue