Skip to content

Commit

Permalink
Include managers as well in case the child creates participation
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Sep 25, 2024
1 parent ea38fff commit e78372a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/youth/event/participations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module Youth::Event::ParticipationsController

def current_user_interested_in_mail?
# send email to kind and verwalter
current_user.and_manageds.map(&:id).include? entry.person_id
associated_people = current_user.and_manageds.concat(current_user.managers)
associated_people.map(&:id).include? entry.person_id
end
end

Expand Down

0 comments on commit e78372a

Please sign in to comment.