From 9853a4a82ddb216b3e929015708fcd5629a20f4a Mon Sep 17 00:00:00 2001 From: praju-aot Date: Fri, 10 Jan 2025 12:52:33 -0500 Subject: [PATCH] ORV2-3282 PA can view all active and expired permits https://moti-imb.atlassian.net/browse/ORV2-3282 --- .../permit/company-permit.controller.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vehicles/src/modules/permit-application-payment/permit/company-permit.controller.ts b/vehicles/src/modules/permit-application-payment/permit/company-permit.controller.ts index 0e976c7f5..e1db96042 100644 --- a/vehicles/src/modules/permit-application-payment/permit/company-permit.controller.ts +++ b/vehicles/src/modules/permit-application-payment/permit/company-permit.controller.ts @@ -30,7 +30,6 @@ import { ApiPaginatedResponse } from 'src/common/decorator/api-paginate-response import { GetPermitQueryParamsDto } from './dto/request/queryParam/getPermit.query-params.dto'; import { CLIENT_USER_ROLE_LIST, - ClientUserRole, IDIR_USER_ROLE_LIST, } from 'src/common/enum/user-role.enum'; import { ReadPermitMetadataDto } from './dto/response/read-permit-metadata.dto'; @@ -82,11 +81,6 @@ export class CompanyPermitController { ); } - const userGuid = - ClientUserRole.PERMIT_APPLICANT === currentUser.orbcUserRole - ? currentUser.userGUID - : null; - return await this.permitService.findPermit({ page: getPermitQueryParamsDto.page, take: getPermitQueryParamsDto.take, @@ -95,7 +89,6 @@ export class CompanyPermitController { expired: getPermitQueryParamsDto.expired, searchColumn: getPermitQueryParamsDto.searchColumn, searchString: getPermitQueryParamsDto.searchString, - userGUID: userGuid, currentUser: currentUser, }); }