mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +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
|
Method to see if that object can be edited by the given user
|
||||||
"""
|
"""
|
||||||
ms = self.get_membership_for(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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user