Fix for mailing lists

This commit is contained in:
2017-12-22 12:06:23 +01:00
parent 10dfb2c122
commit b7483513be
2 changed files with 6 additions and 0 deletions

View File

@ -296,6 +296,9 @@ class Mailing(models.Model):
def can_view(self, user):
return self.club.has_rights_in_club(user)
def can_be_edited_by(self, user):
return self.club.has_rights_in_club(user)
def delete(self):
for sub in self.subscriptions.all():
sub.delete()