residency/app/policies/story_policy.rb

10 lines
154 B
Ruby

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