Skip to content

Commit

Permalink
Merge pull request #2037 from bcgov/bugfix/ALCS-2422-status-search-ro…
Browse files Browse the repository at this point in the history
…le-fix

ALCS-2422 Fix the controllers with the correct role
  • Loading branch information
fbarreta authored Dec 19, 2024
2 parents e1f552f + 73c922b commit 81fcedc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/apps/alcs/src/alcs/search/search.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class SearchController {
}

@Post('/advanced/application-status')
@UserRoles(...ROLES_ALLOWED_APPLICATIONS)
@UserRoles(...ROLES_ALLOWED_SEARCH)
async advancedSearchApplicationStatus(@Body() fileNumbers: string[]): Promise<StatusUpdateSearchResultDto[]> {
const queryRunner = this.dataSource.createQueryRunner('slave');

Expand All @@ -241,7 +241,7 @@ export class SearchController {
}

@Post('/advanced/noi-status')
@UserRoles(...ROLES_ALLOWED_APPLICATIONS)
@UserRoles(...ROLES_ALLOWED_SEARCH)
async advancedSearchNoiStatus(@Body() fileNumbers: string[]): Promise<StatusUpdateSearchResultDto[]> {
const queryRunner = this.dataSource.createQueryRunner('slave');

Expand All @@ -260,7 +260,7 @@ export class SearchController {
}

@Post('/advanced/notification-status')
@UserRoles(...ROLES_ALLOWED_APPLICATIONS)
@UserRoles(...ROLES_ALLOWED_SEARCH)
async advancedSearchNotificationStatus(@Body() fileNumbers: string[]): Promise<StatusUpdateSearchResultDto[]> {
const queryRunner = this.dataSource.createQueryRunner('slave');

Expand Down

0 comments on commit 81fcedc

Please sign in to comment.