starting with events, tied to profiles (not accounts)
This commit is contained in:
13
app/policies/event_policy.rb
Normal file
13
app/policies/event_policy.rb
Normal file
@ -0,0 +1,13 @@
|
||||
class EventPolicy < EditOwnPolicy
|
||||
|
||||
def owner?
|
||||
member == record.profile.member
|
||||
end
|
||||
|
||||
class Scope < Scope
|
||||
# NOTE: Be explicit about which records you allow access to!
|
||||
# def resolve
|
||||
# scope.all
|
||||
# end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user