From 7e66ca90da614d50a3680dd5cab8f1618d2f564e Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Sun, 28 Jan 2018 08:34:22 +0100
Subject: [PATCH] Fix typo

---
 scipost/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scipost/models.py b/scipost/models.py
index 0fcef649d..03121a51b 100644
--- a/scipost/models.py
+++ b/scipost/models.py
@@ -87,7 +87,7 @@ class Contributor(models.Model):
                 or self.user.is_superuser)
 
     def is_SP_Admin(self):
-        return (self.fellowships.active().filter(name='SciPost Administrators').exists()
+        return (self.user.groups.filter(name='SciPost Administrators').exists()
                 or self.user.is_superuser)
 
     def is_MEC(self):
-- 
GitLab