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 17aa34f91e0b96c0e5e23b2932bd586ce1192699..03f87a13cdd10616f7aef9018336601b46e67385 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 dec2bf5d6199c7cd0d84f3dc1e76a73ccc336302..2edeafb09db0093bae6ff060e2dcd2166f5c9387 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