Skip to content

Commit

Permalink
Merge pull request #162 from bcgov/disable_role_reqs
Browse files Browse the repository at this point in the history
additional role disabling
  • Loading branch information
mgtennant authored Apr 26, 2024
2 parents a9dba3d + a0744fa commit bfb0e41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions backend/src/admin/admin.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@ import { JwtRoleGuard } from 'src/auth/jwtrole.guard';
import { JwtAuthGuard } from 'src/auth/jwtauth.guard';
import { Roles } from 'src/auth/decorators/roles.decorator';
import { Role } from 'src/enum/role.enum';
import { Public } from 'src/auth/decorators/public.decorator';

let requestUrl: string;
let requestConfig: AxiosRequestConfig;

@Controller('admin')
// @UseFilters(AuthenticationFilter)
// @UseGuards(AuthenticationGuard)
// @UseGuards(AdminGuard)
@UseGuards(JwtAuthGuard)
@UseGuards(JwtRoleGuard)
// @UseGuards(JwtRoleGuard)
// @Roles(Role.TICDI_ADMIN)
export class AdminController {
constructor(private readonly adminService: AdminService) {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/report/report.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class ReportController {

// remember to update
@Post('generate-report')
@UseGuards(JwtRoleGuard)
// @UseGuards(JwtRoleGuard)
// @Roles(Role.GENERATE_DOCUMENTS)
@Header('Content-Type', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document')
@Header('Content-Disposition', 'attachment; filename=report.docx')
Expand Down

0 comments on commit bfb0e41

Please sign in to comment.