From f65f261cfd634dfd8b4875bac8f61d1159ea9a57 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Thu, 24 Aug 2017 00:20:20 +0200 Subject: [PATCH] mailing: Fix error when deleting user from mailing when only email provided --- club/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/club/models.py b/club/models.py index 94b9ca97..59bc91f6 100644 --- a/club/models.py +++ b/club/models.py @@ -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 + ' '