instructeurs: fix email casing in invitation
When inviting an instructeur, the code first looked up an existing instructeur using the normalized (downcased) email address–but then tried to promote it using the non-normalized version, which failed. This fixes the issue by always using the normalized email.
This commit is contained in:
parent
1adda1b405
commit
c37bfc7349
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Admin::InstructeursController < AdminController
|
|||
procedure_id = params[:procedure_id]
|
||||
|
||||
if @instructeur.nil?
|
||||
invite_instructeur(params[:instructeur][:email])
|
||||
invite_instructeur(email)
|
||||
else
|
||||
assign_instructeur!
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue