fix policy

This commit is contained in:
2023-01-16 22:02:33 +02:00
parent 8adbb6d4a4
commit b3a476fc89

View File

@ -2,7 +2,7 @@
# which can be viewed by anyone # which can be viewed by anyone
class EditOwnPolicy < ApplicationPolicy class EditOwnPolicy < ApplicationPolicy
def edit? def edit?
return true member.admin? return true if member.admin?
owner? owner?
end end
def owner? def owner?