diff --git a/setup.py b/setup.py index 6e04cabe..fce51791 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ def get_requirements(fname='requirements.txt'): setup( name="unicms", - version='0.19.0', + version='0.19.1', description="uniCMS is a Django Web Content Management System", long_description=README, long_description_content_type='text/markdown', diff --git a/src/cms/pages/models.py b/src/cms/pages/models.py index f9c66bf4..55277b35 100644 --- a/src/cms/pages/models.py +++ b/src/cms/pages/models.py @@ -283,6 +283,7 @@ def translate_as(self, lang): def is_localizable_by(self, user=None): if not user: return False + if user.is_superuser: return True # check if user has EditorialBoard editor permissions on object # and check for locks on webpath webpath = self.webpath @@ -293,6 +294,7 @@ def is_localizable_by(self, user=None): def is_editable_by(self, user=None): if not user: return False + if user.is_superuser: return True # check if user has EditorialBoard editor permissions on object # and check for locks on webpath webpath = self.webpath @@ -303,6 +305,7 @@ def is_editable_by(self, user=None): def is_publicable_by(self, user=None): if not user: return False + if user.is_superuser: return True # check if user has EditorialBoard editor permissions on object # and check for locks on webpath webpath = self.webpath