mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 12:29:24 +00:00
Fix club rights
This commit is contained in:
@ -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