volunteers/app/policies/story_policy.rb

10 lines
154 B
Ruby
Raw Normal View History

2023-01-22 12:17:27 +01:00
class StoryPolicy < EditOwnPolicy
2023-01-15 21:00:26 +01:00
def edit?
(member == record.member) or member.admin?
end
alias :update? :edit?
alias :destroy? :edit?
end