users: allow site owner to reset passwords of other users.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class PasswordPolicy < ApplicationPolicy
|
||||
def update?
|
||||
record.id == user.id || user.is_admin?
|
||||
record.id == user.id || user.is_owner?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user