Add (admin-only) tickets via 'visibile' attribute [migration]
(cherry picked from commit ce0db3d7a736e7bcde480721986dbfb4a82aa083)
This commit is contained in:
parent
1fcd5c68c5
commit
26f0377c76
15 changed files with 56 additions and 10 deletions
|
|
@ -80,7 +80,9 @@ class Ability
|
|||
end
|
||||
|
||||
can :index, Organization
|
||||
can :index, Ticket
|
||||
can :index, Ticket do |ticket|
|
||||
ticket.visible
|
||||
end
|
||||
can :manage, TicketPurchase, user_id: user.id
|
||||
can [:new, :create], Payment, user_id: user.id
|
||||
can [:index, :show], PhysicalTicket, user: user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue