From 63bb8e460168f7375419679acebe76a89e9044d3 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Fri, 5 Jun 2009 08:02:45 +0000
Subject: [PATCH] Filter actions only for logged in user.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27382 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_actions/tiolive_instance.xml       | 20 ++++++++++++++++++-
 .../portal_actions/tiolive_profile.xml        | 20 ++++++++++++++++++-
 bt5/tiolive_base/bt/revision                  |  2 +-
 3 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/bt5/tiolive_base/ActionTemplateItem/portal_types/portal_actions/tiolive_instance.xml b/bt5/tiolive_base/ActionTemplateItem/portal_types/portal_actions/tiolive_instance.xml
index c47aa42be4..0cb2dc14c6 100644
--- a/bt5/tiolive_base/ActionTemplateItem/portal_types/portal_actions/tiolive_instance.xml
+++ b/bt5/tiolive_base/ActionTemplateItem/portal_types/portal_actions/tiolive_instance.xml
@@ -21,7 +21,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>
@@ -74,4 +76,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>member</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/tiolive_base/ActionTemplateItem/portal_types/portal_actions/tiolive_profile.xml b/bt5/tiolive_base/ActionTemplateItem/portal_types/portal_actions/tiolive_profile.xml
index 81dc77eb00..733fe37ed3 100644
--- a/bt5/tiolive_base/ActionTemplateItem/portal_types/portal_actions/tiolive_profile.xml
+++ b/bt5/tiolive_base/ActionTemplateItem/portal_types/portal_actions/tiolive_profile.xml
@@ -21,7 +21,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>
@@ -74,4 +76,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>member</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
diff --git a/bt5/tiolive_base/bt/revision b/bt5/tiolive_base/bt/revision
index 72f523f36e..86ee83a4a2 100644
--- a/bt5/tiolive_base/bt/revision
+++ b/bt5/tiolive_base/bt/revision
@@ -1 +1 @@
-39
\ No newline at end of file
+40
\ No newline at end of file
-- 
2.30.9