Fix important rights problem in clubs

This commit is contained in:
Skia 2017-05-10 19:16:18 +02:00
parent bf38de2db8
commit 319bb0c2d1

View File

@ -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