Fix account page forms & add account actions rspec

#5
This commit is contained in:
sto
2025-12-10 10:44:03 +01:00
parent cce090587a
commit 8cea403dc9
12 changed files with 131 additions and 47 deletions

View File

@@ -20,7 +20,11 @@ class UserPolicy < ApplicationPolicy
end
def update?
user.admin? || user.id == record.id
edit?
end
def change_password?
edit?
end
def destroy?