Skip to content

Commit

Permalink
fix: check ability for update recruitment session
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoBaroso committed Jan 21, 2024
1 parent d0e4524 commit 2d8bfea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ export class RecruitmentSessionController {
param: Joi.number().positive().integer().required().label('session_id'),
body: updateRecruitmentSessionSchema,
})
@CheckPolicies((ability) => ability.can(Action.Update, 'RecruitmentSession'))
async updateRecruitmentSession(
@Param('session_id') sessionId: number,
@Body() updateRecruitmentSession: UpdateRecruitmentSessionDto,
@Ability() ability: AppAbility,
@Req() req: AuthenticatedRequest, // # TODO: USE THIS param?
): Promise<RecruitmentSessionResponseDto> {
const recruitmentSession =
await this.recruitmentSessionService.findRecruitmentSessionById(
Expand Down

0 comments on commit 2d8bfea

Please sign in to comment.