From 9adbeced73aa491f97338fcf23578d4deeccee5d Mon Sep 17 00:00:00 2001 From: Nicola Chiapolini Date: Sat, 9 Dec 2023 23:12:16 +0100 Subject: [PATCH] minimal fix for bug --- app/abilities/cevi/event/participation_ability.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/abilities/cevi/event/participation_ability.rb b/app/abilities/cevi/event/participation_ability.rb index da0dfde..02e6df7 100644 --- a/app/abilities/cevi/event/participation_ability.rb +++ b/app/abilities/cevi/event/participation_ability.rb @@ -18,9 +18,11 @@ module Cevi::Event::ParticipationAbility may(:show). in_same_layer_or_below_if_ausbildungsmitglied - permission(:any). - may(:create). - if_manage_attendances_in_event_or_her_own_if_application_possible + for_self_or_manageds do + permission(:any). + may(:create). + if_manage_attendances_in_event_or_her_own_if_application_possible + end permission(:any).may(:approve).if_manage_attendances_in_event permission(:any).may(:reject).if_manage_attendances_in_event