Merge 8fb852c1c4 into a9581445f3
This commit is contained in:
commit
ab5890b76d
1 changed files with 4 additions and 0 deletions
|
|
@ -129,6 +129,10 @@ class Ability
|
|||
def signed_in(user)
|
||||
guest # Inherits abilities of guest
|
||||
|
||||
# Can subscribe, unsubscribe to a conference
|
||||
can :subscribe, Conference
|
||||
can :unsubscribe, Conference, id: user.subscriptions.pluck(:conference_id)
|
||||
|
||||
# Conference Registration
|
||||
can :manage, Registration, user_id: user.id
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue