Merge pull request #4313 from maatinito/issue/unable_to_reinvite_admin

[fix #4311] Unable to reinvite admin
This commit is contained in:
Paul Chavard 2019-09-17 16:29:38 +02:00 committed by GitHub
commit 703c436c61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ module Manager
end
def reinvite
Administrateur.find_inactive_by_id(params[:id]).invite!(current_administration.id)
Administrateur.find_inactive_by_id(params[:id]).user.invite_administrateur!(current_administration.id)
flash.notice = "Invitation renvoyée"
redirect_to manager_administrateur_path(params[:id])
end