mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
mailing: Fix error when deleting user from mailing when only email provided
This commit is contained in:
parent
4f6109e27c
commit
f65f261cfd
@ -307,7 +307,7 @@ class MailingSubscription(models.Model):
|
||||
return self.mailing.club.has_rights_in_club(user) or user.is_root or self.user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID)
|
||||
|
||||
def can_be_edited_by(self, user):
|
||||
return (user is not None and user.id == self.user.id)
|
||||
return (self.user is not None and user.id == self.user.id)
|
||||
|
||||
def fetch_format(self):
|
||||
return self.email + ' '
|
||||
|
Loading…
Reference in New Issue
Block a user