change rails initialisation.
repair abilities. add ticket purchasing check.
This commit is contained in:
parent
72ef33cbe6
commit
a9ab1186f8
9 changed files with 14 additions and 14 deletions
|
|
@ -81,7 +81,7 @@ class Ability
|
|||
|
||||
can :index, Ticket
|
||||
can :manage, TicketPurchase, user_id: user.id
|
||||
can [:new], Payment, user_id: user.id
|
||||
can [:new, :create], Payment, user_id: user.id
|
||||
|
||||
can [:create, :destroy], Subscription, user_id: user.id
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue