diff --git a/bt5/erp5_data_protection/ActionTemplateItem/portal_types/Data%20Protection%20Request/erase_some_original_data.xml b/bt5/erp5_data_protection/ActionTemplateItem/portal_types/Data%20Protection%20Request/erase_some_original_data.xml index cf817f667728c7046eab2832382ee0e71a1e5efb..4da0d8c750e3dc2f59283a5f4bd42d8ea6df8907 100644 --- a/bt5/erp5_data_protection/ActionTemplateItem/portal_types/Data%20Protection%20Request/erase_some_original_data.xml +++ b/bt5/erp5_data_protection/ActionTemplateItem/portal_types/Data%20Protection%20Request/erase_some_original_data.xml @@ -101,7 +101,7 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>python:here.getValidationState() in (\'submitted\', \'open\') and [x for x in object.getPortalObject().portal_membership.getAuthenticatedMember().getRolesInContext(object) if x in (\'Assignor\', \'Manager\')]</string> </value> + <value> <string>python:here.getValidationState() in (\'submitted\', \'open\') and [x for x in object.getPortalObject().portal_membership.getAuthenticatedMember().getRolesInContext(object) if x in (\'Assignor\', \'Manager\')] and here.getAgentValue(checked_permission=\'View\') is not None</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_data_protection/bt/revision b/bt5/erp5_data_protection/bt/revision index b74e882ae378d7e5aae630f48c20dd1e40186d98..1758dddccea2b3b02d21228a0d06a45a35c0d861 100644 --- a/bt5/erp5_data_protection/bt/revision +++ b/bt5/erp5_data_protection/bt/revision @@ -1 +1 @@ -31 \ No newline at end of file +32 \ No newline at end of file