Add booths to non admin
This commit is contained in:
parent
033dbe4c40
commit
242a980619
22 changed files with 426 additions and 86 deletions
|
|
@ -75,6 +75,12 @@ class Ability
|
|||
can [:new, :create], Payment, user_id: user.id
|
||||
can [:index, :show], PhysicalTicket, user: user
|
||||
|
||||
can [:new, :create], Booth
|
||||
|
||||
can [:edit, :update, :index, :show], Booth do |booth|
|
||||
booth.users.include?(user)
|
||||
end
|
||||
|
||||
can [:create, :destroy], Subscription, user_id: user.id
|
||||
|
||||
can [:new, :create], Event do |event|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue