mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Fix club rights
This commit is contained in:
1 parent
d90c0f86f4
commit
fe8f5bb2e3
4 files changed
+6
-7
No files matched your search
+1
-3
@@ -58,7 +58,7 @@ class Club(models.Model):
|
||||
"""
|
||||
Method to see if that object can be super edited by the given user
|
||||
"""
|
||||
if user.groups.filter(name=settings.AE_GROUPS['board']['name']).exists():
|
||||
if user.is_in_group(settings.AE_GROUPS['board']['name']):
|
||||
return True
|
||||
return False
|
||||
|
||||
@@ -117,5 +117,3 @@ class Membership(models.Model):
|
||||
def get_absolute_url(self):
|
||||
return reverse('club:club_members', kwargs={'club_id': self.club.id})
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user