mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Fix page permissions and fix migration when on sqlite backend
This commit is contained in:
@ -893,7 +893,7 @@ class Page(models.Model):
|
||||
)
|
||||
|
||||
def can_be_edited_by(self, user):
|
||||
if self.is_club_page and self.club.can_be_edited_by(user):
|
||||
if hasattr(self, 'club') and self.club.can_be_edited_by(user):
|
||||
# Override normal behavior for clubs
|
||||
return True
|
||||
return False
|
||||
|
Reference in New Issue
Block a user