volunteers/app/policies/story_policy.rb
2023-01-15 22:00:26 +02:00

10 lines
158 B
Ruby

class StoryPolicy < ApplicationPolicy
def edit?
(member == record.member) or member.admin?
end
alias :update? :edit?
alias :destroy? :edit?
end