invite user with roles
This commit is contained in:
parent
770a63e15c
commit
804ebb455f
3 changed files with 29 additions and 4 deletions
|
|
@ -18,4 +18,8 @@ module Invitation
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
def invite_via_email
|
||||
User.invite!({ email: user_params[:email] }, current_user)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue