From f938541733647b08c2ccfe2456d5bf9c73f3686f Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 30 Sep 2024 10:14:07 +0700 Subject: [PATCH] fix user download report error --- src/controllers/ProfileController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index ba3719d5..b7ffe372 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -109,7 +109,7 @@ export class ProfileController extends Controller { */ @Get("kp7-short/{id}") async kp7ShortById(@Path() id: string, @Request() req: RequestWithUser) { - await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id); + // await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id); const orgRevision = await this.orgRevisionRepo.findOne({ where: { orgRevisionIsCurrent: true }, }); @@ -266,7 +266,7 @@ export class ProfileController extends Controller { */ @Get("kk1/{id}") public async getKk1(@Path() id: string, @Request() req: RequestWithUser) { - await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id); + // await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id); const profiles = await this.profileRepo.findOne({ // select: [ // "citizenId",