Sync pages with club unix_name

This commit is contained in:
2017-09-13 11:20:55 +02:00
parent fe69cbcee1
commit 939146bddd
3 changed files with 19 additions and 9 deletions

View File

@ -892,6 +892,12 @@ class Page(models.Model):
code='loop',
)
def can_be_edited_by(self, user):
if self.is_club_page and self.club.can_be_edited_by(user):
# Override normal behavior for clubs
return True
return False
def get_parent_list(self):
l = []
p = self.parent