From 0ec23e680f94a56c8441091262b810b9e27b1d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 6 Mar 2009 15:01:36 +0000 Subject: [PATCH] only manager should see developer mode on preferences git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25909 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...y_preferred_html_style_developper_mode.xml | 20 ++++++++++++++++++- product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle/my_preferred_html_style_developper_mode.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle/my_preferred_html_style_developper_mode.xml index 7eac4c6c90..f38fe04256 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle/my_preferred_html_style_developper_mode.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle/my_preferred_html_style_developper_mode.xml @@ -97,7 +97,9 @@ </item> <item> <key> <string>enabled</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>external_validator</string> </key> @@ -168,4 +170,20 @@ </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: here.getPortalObject().portal_membership.checkPermission("Manage portal", here)</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 1ea87ef70d..4d642625f2 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1101 \ No newline at end of file +1102 \ No newline at end of file -- 2.30.9