Skip to content

Commit

Permalink
Only send emails to active officers/owners
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Sep 26, 2024
1 parent 97803da commit fbedec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/clubs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def send_question_mail(self, request=None):

owner_emails = list(
self.club.membership_set.filter(
role__lte=Membership.ROLE_OFFICER
role__lte=Membership.ROLE_OFFICER, active=True
).values_list("person__email", flat=True)
)

Expand Down Expand Up @@ -1116,7 +1116,7 @@ def send_request(self, request=None):

owner_emails = list(
self.club.membership_set.filter(
role__lte=Membership.ROLE_OFFICER
role__lte=Membership.ROLE_OFFICER, active=True
).values_list("person__email", flat=True)
)

Expand Down

0 comments on commit fbedec8

Please sign in to comment.