From 98685ecac8d78e4de99d87a496da9ab24253ed00 Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Tue, 9 Mar 2010 12:49:03 +0000
Subject: [PATCH] Avoid user to create data_protection_request from a module

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33527 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_actions/raise_data_protection_request.xml            | 2 +-
 bt5/erp5_data_protection/bt/revision                            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_data_protection/ActionTemplateItem/portal_types/portal_actions/raise_data_protection_request.xml b/bt5/erp5_data_protection/ActionTemplateItem/portal_types/portal_actions/raise_data_protection_request.xml
index 17aa34f91e..03f87a13cd 100644
--- a/bt5/erp5_data_protection/ActionTemplateItem/portal_types/portal_actions/raise_data_protection_request.xml
+++ b/bt5/erp5_data_protection/ActionTemplateItem/portal_types/portal_actions/raise_data_protection_request.xml
@@ -87,7 +87,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python: portal.Base_checkPermission(\'data_protection_request_module\', \'Add portal content\')</string> </value>
+            <value> <string>python: portal.Base_checkPermission(\'data_protection_request_module\', \'Add portal content\') and here.getPortalType() not in portal.getPortalModuleTypeList()</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_data_protection/bt/revision b/bt5/erp5_data_protection/bt/revision
index dec2bf5d61..2edeafb09d 100644
--- a/bt5/erp5_data_protection/bt/revision
+++ b/bt5/erp5_data_protection/bt/revision
@@ -1 +1 @@
-19
\ No newline at end of file
+20
\ No newline at end of file
-- 
2.30.9