ปิดสิทธิ์ history ทะเบียนประวัตื (ชน USER)

This commit is contained in:
AdisakKanthawilang 2024-09-02 11:03:54 +07:00
parent 6d36c9b05f
commit 61176e0595
6 changed files with 30 additions and 30 deletions

View file

@ -85,10 +85,10 @@ export class ProfileOtherController extends Controller {
],
})
public async otherHistory(@Path() otherId: string, @Request() req: RequestWithUser) {
const _record = await this.otherRepository.findOneBy({ id: otherId });
if (_record) {
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
}
// const _record = await this.otherRepository.findOneBy({ id: otherId });
// if (_record) {
// await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", _record.profileId);
// }
const record = await this.otherHistoryRepository.find({
where: { profileOtherId: otherId },
order: { createdAt: "DESC" },