--- a/src/pyams_content/root/__init__.py Thu Aug 23 14:22:45 2018 +0200
+++ b/src/pyams_content/root/__init__.py Mon Aug 27 10:59:37 2018 +0200
@@ -25,14 +25,13 @@
from pyams_content.features.header.interfaces import IHeaderTarget
from pyams_content.features.preview.interfaces import IPreviewTarget
from pyams_content.features.redirect.interfaces import IRedirectionManagerTarget
-from pyams_content.interfaces import WEBMASTER_ROLE, OPERATOR_ROLE
+from pyams_content.interfaces import WEBMASTER_ROLE, OPERATOR_ROLE, MANAGE_SITE_ROOT_PERMISSION
from pyams_content.root.interfaces import ISiteRootRoles, ISiteRootConfiguration, ISiteRoot, \
ISiteRootToolsConfiguration, ISiteRootBackOfficeConfiguration
from pyams_form.interfaces.form import IFormContextPermissionChecker
from pyams_portal.interfaces import IPortalContext, DESIGNER_ROLE
from pyams_security.interfaces import IDefaultProtectionPolicy, IGrantedRoleEvent, ISecurityManager, SYSTEM_ADMIN_ROLE
from pyams_skin.interfaces.configuration import IConfiguration, IBackOfficeConfiguration
-from pyams_utils.interfaces import MANAGE_SYSTEM_PERMISSION
from pyams_utils.interfaces.site import ISiteRootFactory
# import packages
@@ -112,9 +111,7 @@
class SiteRootPermissionChecker(ContextAdapter):
"""Site root permission checker"""
- @property
- def edit_permission(self):
- return MANAGE_SYSTEM_PERMISSION
+ edit_permission = MANAGE_SITE_ROOT_PERMISSION
#