diff --git a/api/src/recruitment-session/recruitment-session.controller.ts b/api/src/recruitment-session/recruitment-session.controller.ts index 0cbbc05..96d56fb 100644 --- a/api/src/recruitment-session/recruitment-session.controller.ts +++ b/api/src/recruitment-session/recruitment-session.controller.ts @@ -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 { const recruitmentSession = await this.recruitmentSessionService.findRecruitmentSessionById(