mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-21 21:53:30 +00:00
Fix important rights problem in clubs
This commit is contained in:
parent
bf38de2db8
commit
319bb0c2d1
@ -138,7 +138,7 @@ class Club(models.Model):
|
||||
Method to see if that object can be edited by the given user
|
||||
"""
|
||||
ms = self.get_membership_for(user)
|
||||
if ms is not None:
|
||||
if ms is not None and ms.role > settings.SITH_MAXIMUM_FREE_ROLE:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user