@@ -7,25 +7,23 @@ module Youth::EventAbility
77 extend ActiveSupport ::Concern
88
99 included do
10- on ( Event ::Course ) do
11- permission ( :any )
12- . may ( :index_revoked_participations , :list_tentatives )
13- . for_participations_full_events
14- permission ( :group_full )
15- . may ( :index_revoked_participations , :list_tentatives )
16- . in_same_group
17- permission ( :group_and_below_full )
18- . may ( :index_revoked_participations , :list_tentatives )
19- . in_same_group_or_below
20- permission ( :layer_full )
21- . may ( :index_revoked_participations , :list_tentatives )
22- . in_same_layer
23- permission ( :layer_and_below_full )
24- . may ( :index_revoked_participations , :list_tentatives )
25- . in_same_layer_or_below
10+ permission ( :any )
11+ . may ( :index_revoked_participations , :list_tentatives )
12+ . for_participations_full_events
13+ permission ( :group_full )
14+ . may ( :index_revoked_participations , :list_tentatives )
15+ . in_same_group
16+ permission ( :group_and_below_full )
17+ . may ( :index_revoked_participations , :list_tentatives )
18+ . in_same_group_or_below
19+ permission ( :layer_full )
20+ . may ( :index_revoked_participations , :list_tentatives )
21+ . in_same_layer
22+ permission ( :layer_and_below_full )
23+ . may ( :index_revoked_participations , :list_tentatives )
24+ . in_same_layer_or_below
2625
27- general ( :list_tentatives ) . if_tentative_applications?
28- end
26+ general ( :list_tentatives ) . if_tentative_applications?
2927 end
3028
3129 def if_tentative_applications?
0 commit comments