Merge ed087352e2 into 7a95c43a57
This commit is contained in:
commit
6b6fc61fd8
42 changed files with 772 additions and 37 deletions
|
|
@ -94,6 +94,9 @@ class Ability
|
|||
|
||||
# can manage the commercials of their own events
|
||||
can :manage, Commercial, commercialable_type: 'Event', commercialable_id: user.events.pluck(:id)
|
||||
|
||||
# can view and reply a survey
|
||||
can [:show, :reply], Survey, surveyable_type: 'Conference', surveyable_id: user.registrations.pluck(:conference_id)
|
||||
end
|
||||
|
||||
# Abilities for signed in users with roles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue