From b24511749c8a9e8556e3c60b86741815a4b174a2 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Mon, 18 Oct 2010 17:01:17 +0000
Subject: [PATCH] Do not show this action if Wizard Tool is not configured.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39298 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Person/person_reuse_existing_login.xml       | 4 ++--
 bt5/erp5_wizard/bt/revision                                   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_wizard/ActionTemplateItem/portal_types/Person/person_reuse_existing_login.xml b/bt5/erp5_wizard/ActionTemplateItem/portal_types/Person/person_reuse_existing_login.xml
index 0e9ff89459..586c59b603 100644
--- a/bt5/erp5_wizard/ActionTemplateItem/portal_types/Person/person_reuse_existing_login.xml
+++ b/bt5/erp5_wizard/ActionTemplateItem/portal_types/Person/person_reuse_existing_login.xml
@@ -58,7 +58,7 @@
         </item>
         <item>
             <key> <string>priority</string> </key>
-            <value> <float>1.0</float> </value>
+            <value> <float>10.0</float> </value>
         </item>
         <item>
             <key> <string>title</string> </key>
@@ -92,7 +92,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python: not here.getReference()</string> </value>
+            <value> <string>python: not here.getReference() and context.portal_wizard.WizardTool_isUserSynchronizationAllowed()</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_wizard/bt/revision b/bt5/erp5_wizard/bt/revision
index b00047941a..9da06a1833 100644
--- a/bt5/erp5_wizard/bt/revision
+++ b/bt5/erp5_wizard/bt/revision
@@ -1 +1 @@
-159
\ No newline at end of file
+160
\ No newline at end of file
-- 
2.30.9