volunteers/app/policies/story_policy.rb

10 lines
158 B
Ruby
Raw Normal View History

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