Pass the signed-in user as the commentaire author from /contact
This commit is contained in:
parent
72fd5d250f
commit
7e98213829
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class SupportController < ApplicationController
|
|||
file: params[:file],
|
||||
body: "[#{params[:subject]}]<br><br>#{params[:text]}"
|
||||
}
|
||||
commentaire = CommentaireService.build_with_email(email, dossier, attributes)
|
||||
commentaire = CommentaireService.build(current_user, dossier, attributes)
|
||||
commentaire.save!
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue