10 lines
158 B
Ruby
10 lines
158 B
Ruby
|
class StoryPolicy < ApplicationPolicy
|
||
|
|
||
|
def edit?
|
||
|
(member == record.member) or member.admin?
|
||
|
end
|
||
|
alias :update? :edit?
|
||
|
alias :destroy? :edit?
|
||
|
|
||
|
end
|