Drop Organization abilities

This commit is contained in:
Henne Vogelsang 2024-06-07 16:13:28 +02:00
parent b9a50ef20d
commit dc1a6a4363
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
3 changed files with 4 additions and 23 deletions

View file

@ -17,7 +17,6 @@ class Ability
# Abilities for not signed in users (guests)
def not_signed_in
can [:index, :conferences, :code_of_conduct], Organization
can [:index], Conference
can [:show], Conference do |conference|
conference.splashpage&.public == true
@ -86,7 +85,6 @@ class Ability
end
end
can :index, Organization
can :index, Ticket
can :manage, TicketPurchase, user_id: user.id
can [:new, :create], Payment, user_id: user.id