--- a/src/pyams_portal/zmi/page.py Wed Jun 20 18:13:55 2018 +0200
+++ b/src/pyams_portal/zmi/page.py Thu Jun 21 10:38:57 2018 +0200
@@ -86,6 +86,11 @@
fields = field.Fields(IPortalPage).select('use_shared_template', 'shared_template')
fields['use_shared_template'].widgetFactory = SingleCheckBoxFieldWidget
+ edit_permission = MANAGE_TEMPLATE_PERMISSION
+
+ def getContent(self):
+ return IPortalPage(self.context)
+
def updateGroups(self):
self.add_group(NamedWidgetsGroup(self, 'inherited_template_properties', self.widgets,
('use_shared_template', 'shared_template',),