From 881fd9e64600d9e7cb43d3c2d30331fedcf64086 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Tue, 10 Jun 2008 14:25:08 +0000
Subject: [PATCH] Display action only if user has add permission on event
 module.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21472 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Person%20Module/create_event_list.xml     | 20 ++++++++++++++++++-
 bt5/erp5_crm/bt/revision                      |  2 +-
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Person%20Module/create_event_list.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Person%20Module/create_event_list.xml
index 3762509816..da9d2ef758 100644
--- a/bt5/erp5_crm/ActionTemplateItem/portal_types/Person%20Module/create_event_list.xml
+++ b/bt5/erp5_crm/ActionTemplateItem/portal_types/Person%20Module/create_event_list.xml
@@ -27,7 +27,9 @@
         </item>
         <item>
             <key> <string>condition</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
         </item>
         <item>
             <key> <string>description</string> </key>
@@ -80,4 +82,20 @@
       </dictionary>
     </pickle>
   </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="Expression" module="Products.CMFCore.Expression"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python: portal.Base_checkPermission(\'event_module\', \'Add portal content\')</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision
index bb81456fa1..680cc9c31b 100644
--- a/bt5/erp5_crm/bt/revision
+++ b/bt5/erp5_crm/bt/revision
@@ -1 +1 @@
-262
\ No newline at end of file
+263
\ No newline at end of file
-- 
2.30.9