From 3f61235c6425a9b3a1bdb669fa1ef418fc62b6c7 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 15 May 2008 08:25:42 +0000 Subject: [PATCH] Prevent Unauthorized error. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20976 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_crm/Event_hasFollowUpAssessmentForm.xml | 9 +++------ bt5/erp5_crm/bt/revision | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_hasFollowUpAssessmentForm.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_hasFollowUpAssessmentForm.xml index bc47fe1c29..6d10d43462 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_hasFollowUpAssessmentForm.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_hasFollowUpAssessmentForm.xml @@ -3,11 +3,8 @@ <record id="1" aka="AAAAAAAAAAE="> <pickle> <tuple> - <tuple> - <string>Products.PythonScripts.PythonScript</string> - <string>PythonScript</string> - </tuple> - <none/> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> </tuple> </pickle> <pickle> @@ -70,7 +67,7 @@ <key> <string>_body</string> </key> <value> <string>if not context.getFollowUp():\n return False\n -followup_value = context.getFollowUpValue()\n +followup_value = context.getFollowUpValue(checked_permission=\'Access contents information\')\n if followup_value is None:\n return False\n if getattr(followup_value, \'getAssessmentFormId\', None) is None:\n diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision index 20ad60520b..f937f7e2b3 100644 --- a/bt5/erp5_crm/bt/revision +++ b/bt5/erp5_crm/bt/revision @@ -1 +1 @@ -230 \ No newline at end of file +233 \ No newline at end of file -- 2.30.9