mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 12:29:24 +00:00
Sync pages with club unix_name
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user