Skip to content

Commit

Permalink
fix: actually allow club announcements sponsors to modify
Browse files Browse the repository at this point in the history
  • Loading branch information
alanzhu0 committed Oct 5, 2024
1 parent 7de2cb9 commit fbab690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intranet/apps/announcements/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def can_modify(self, user):
return (
user.is_announcements_admin
or self.is_club_announcement
and (self.is_visible_submitter(user) or user.club_sponsor_for_set.filter(id=self.activity.id).exists())
and (user in self.activity.officers.all() or user in self.activity.sponsors.all() or user in self.activity.club_sponsors.all())
)

# False, not None. This can be None if no AnnouncementRequest exists for this Announcement,
Expand Down

0 comments on commit fbab690

Please sign in to comment.