fix(members/rules): check for groups of excursion instead of groups of member

pull/153/head
Christian Merten 8 months ago
parent f213e11772
commit 60942115ca
Signed by: christian.merten
GPG Key ID: D953D69721B948B3

@ -60,7 +60,7 @@ def _is_leader(member, excursion):
return False
if member in excursion.jugendleiter.all():
return True
yl = [ yl for group in member.group.all() for yl in group.leiters.all() ]
yl = [ yl for group in excursion.groups.all() for yl in group.leiters.all() ]
return member in yl

Loading…
Cancel
Save