Skip to content

Commit

Permalink
forgot to re-enable admin auth only to these endpoints (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennettsf authored Feb 13, 2025
1 parent 959f548 commit 96f261f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/user/controllers/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export class UserController {
) {}

// ----------------- Get Users ----------------------------- \\
// @Roles('admin')
// @UseGuards(AuthGuard('jwt'), RoleGuard)
@Roles('admin')
@UseGuards(AuthGuard('jwt'), RoleGuard)
@Get('')
async getAllUsers() {
return await this.userService.getAllUsers();
}

// @Roles('admin')
// @UseGuards(AuthGuard('jwt'), RoleGuard)
@Roles('admin')
@UseGuards(AuthGuard('jwt'), RoleGuard)
@Get('search')
async searchUsers(@Req() req: Request) {
// Destructure query parameters with defaults
Expand Down

0 comments on commit 96f261f

Please sign in to comment.