Skip to content

Commit

Permalink
ORV2-3282 PA can view all active and expired permits (#1739)
Browse files Browse the repository at this point in the history
  • Loading branch information
praju-aot authored Jan 10, 2025
1 parent 191dd65 commit aa12d4e
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand All @@ -95,7 +89,6 @@ export class CompanyPermitController {
expired: getPermitQueryParamsDto.expired,
searchColumn: getPermitQueryParamsDto.searchColumn,
searchString: getPermitQueryParamsDto.searchString,
userGUID: userGuid,
currentUser: currentUser,
});
}
Expand Down

0 comments on commit aa12d4e

Please sign in to comment.