Skip to content

Commit

Permalink
- add roles guard to /all profiles endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamarcke committed Nov 6, 2024
1 parent f5ba8e0 commit 260114b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/profile/profile.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import { Roles } from "../auth/roles.decorator";
import { EUserRoles } from "../utils/constants";
import { FindAllProfileResponseItemDto } from "./dto/find-all-profile.dto";

// No POST /profile endpoint
@Controller("profile")
@ApiTags("profile")
@UseGuards(AuthGuard)
Expand Down Expand Up @@ -100,6 +99,7 @@ export class ProfileController {
}

@Get("all")
@Roles([EUserRoles.ADMIN, EUserRoles.MOD])
@ApiOkResponse({
type: FindAllProfileResponseItemDto,
status: "2XX",
Expand Down

0 comments on commit 260114b

Please sign in to comment.