Adds ability for guests to subscribe
This commit is contained in:
parent
3581edf58c
commit
8fb852c1c4
1 changed files with 4 additions and 0 deletions
|
|
@ -127,6 +127,10 @@ class Ability
|
||||||
def signed_in(user)
|
def signed_in(user)
|
||||||
guest # Inherits abilities of guest
|
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
|
# Conference Registration
|
||||||
can :manage, Registration, user_id: user.id
|
can :manage, Registration, user_id: user.id
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue