Fix instructeur invitation
This commit is contained in:
parent
efd793f266
commit
5fdac38cb2
12 changed files with 86 additions and 113 deletions
|
@ -40,6 +40,10 @@ class User < ApplicationRecord
|
|||
owns?(dossier) || invite?(dossier.id)
|
||||
end
|
||||
|
||||
def invite!
|
||||
UserMailer.invite_instructeur(self, set_reset_password_token).deliver_later
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def link_invites!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue