mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23: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)
|
authorize!(:manage, account)
|
||||||
|
|
||||||
@user.account = account
|
@user.account = account
|
||||||
|
|
||||||
|
authorize!(:create, @user)
|
||||||
end
|
end
|
||||||
|
|
||||||
if @user.update(attrs.except(*(current_user == @user ? %i[password otp_required_for_login role] : %i[password])))
|
if @user.update(attrs.except(*(current_user == @user ? %i[password otp_required_for_login role] : %i[password])))
|
||||||
|
|||||||
Reference in new issue
Block a user