ปิดสิทธิ์ history ทะเบียนประวัตื (ชน USER)
This commit is contained in:
parent
6d36c9b05f
commit
61176e0595
6 changed files with 30 additions and 30 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue