merge default dev-dc
authorDamien Correia
Thu, 21 Jun 2018 11:42:50 +0200 (2018-06-21)
branchdev-dc
changeset 745 49fce7b4af50
parent 744 d07037e1874d (current diff)
parent 723 d4b00aa0a9e0 (diff)
child 746 97fc5ed136fb
merge default
--- a/src/pyams_content/features/footer/zmi/__init__.py	Thu Jun 21 09:58:30 2018 +0200
+++ b/src/pyams_content/features/footer/zmi/__init__.py	Thu Jun 21 11:42:50 2018 +0200
@@ -89,6 +89,8 @@
             fields = field.Fields(Interface)
         return fields
 
+    edit_permission = MANAGE_TEMPLATE_PERMISSION
+
     @property
     def buttons(self):
         if self.mode == INPUT_MODE:
@@ -160,12 +162,17 @@
     fields = field.Fields(IFooterSettings).select('renderer')
     weight = 1
 
+    edit_permission = MANAGE_TEMPLATE_PERMISSION
+
     _changes = None
 
     def __init__(self, context, request, group):
         context = IFooterSettings(context)
         super(FooterSettingsRendererEditSubform, self).__init__(context, request, group)
 
+    def getContent(self):
+        return IFooterSettings(self.context)
+
     def updateWidgets(self, prefix=None):
         super(FooterSettingsRendererEditSubform, self).updateWidgets(prefix)
         if 'renderer' in self.widgets:
--- a/src/pyams_content/features/header/zmi/__init__.py	Thu Jun 21 09:58:30 2018 +0200
+++ b/src/pyams_content/features/header/zmi/__init__.py	Thu Jun 21 11:42:50 2018 +0200
@@ -95,6 +95,8 @@
             fields = field.Fields(Interface)
         return fields
 
+    edit_permission = MANAGE_TEMPLATE_PERMISSION
+
     @property
     def buttons(self):
         if self.mode == INPUT_MODE:
@@ -169,12 +171,17 @@
     fields = field.Fields(IHeaderSettings).select('renderer')
     weight = 1
 
+    edit_permission = MANAGE_TEMPLATE_PERMISSION
+
     _changes = None
 
     def __init__(self, context, request, group):
         context = IHeaderSettings(context)
         super(HeaderSettingsRendererEditSubform, self).__init__(context, request, group)
 
+    def getContent(self):
+        return IHeaderSettings(self.context)
+
     def updateWidgets(self, prefix=None):
         super(HeaderSettingsRendererEditSubform, self).updateWidgets(prefix)
         if 'renderer' in self.widgets: