mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
add authorize user
This commit is contained in:
1 parent
c59c470321
commit
ffb3247cdc
1 file changed
+2
@@ -75,6 +75,8 @@ class UsersController < ApplicationController
|
||||
authorize!(:manage, account)
|
||||
|
||||
@user.account = account
|
||||
|
||||
authorize!(:create, @user)
|
||||
end
|
||||
|
||||
if @user.update(attrs.except(*(current_user == @user ? %i[password otp_required_for_login role] : %i[password])))
|
||||
|
||||
Reference in new issue
Block a user