fix bug commentaire invitation
This commit is contained in:
parent
b0fc7665e5
commit
c831c5ac63
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class CommentairesController < ApplicationController
|
|||
NotificationMailer.new_answer(@commentaire.dossier).deliver_now!
|
||||
redirect_to url_for(controller: 'backoffice/dossiers', action: :show, id: params['dossier_id'])
|
||||
elsif current_user.email != @commentaire.dossier.user.email
|
||||
invite = Invite.find_by_email current_user.email
|
||||
invite = Invite.where(dossier: @commentaire.dossier, user: current_user).first
|
||||
redirect_to url_for(controller: 'users/dossiers/invites', action: :show, id: invite.id)
|
||||
else
|
||||
redirect_to url_for(controller: :recapitulatif, action: :show, dossier_id: params['dossier_id'])
|
||||
|
|
Loading…
Reference in a new issue