Commit 13a537c8 authored by Łukasz Nowak's avatar Łukasz Nowak

Fixup partition security.

parent eac8d999
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
<multi_property id='base_category'>destination_section</multi_property> <multi_property id='base_category'>destination_section</multi_property>
</role> </role>
<role id='Auditor'> <role id='Auditor'>
<property id='title'>Software Instance related to Computer Partition</property> <property id='title'>Software Instance group related to Computer Partition</property>
<property id='condition'>python: here.getSlapState() == "busy"</property> <property id='condition'>python: here.getSlapState() == "busy"</property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromAggregateRelatedSoftwareInstance</property> <property id='base_category_script'>ERP5Type_getSecurityCategoryFromAggregateRelatedSoftwareInstanceHostingSubscription</property>
<multi_property id='base_category'>aggregate</multi_property> <multi_property id='base_category'>aggregate</multi_property>
</role> </role>
</type_roles> </type_roles>
\ No newline at end of file
...@@ -67,8 +67,9 @@ software_instance_list = obj.getPortalObject().portal_catalog(\n ...@@ -67,8 +67,9 @@ software_instance_list = obj.getPortalObject().portal_catalog(\n
)\n )\n
\n \n
if len(software_instance_list) == 1:\n if len(software_instance_list) == 1:\n
hosting_subscription = software_instance_list[0].getSpecialise(portal_type=\'Hosting Subscription\')\n
for base_category in base_category_list:\n for base_category in base_category_list:\n
category_list.append({base_category: software_instance_list[0].getRelativeUrl()})\n category_list.append({base_category: hosting_subscription})\n
\n \n
return category_list\n return category_list\n
</string> </value> </string> </value>
...@@ -94,7 +95,7 @@ return category_list\n ...@@ -94,7 +95,7 @@ return category_list\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ERP5Type_getSecurityCategoryFromAggregateRelatedSoftwareInstance</string> </value> <value> <string>ERP5Type_getSecurityCategoryFromAggregateRelatedSoftwareInstanceHostingSubscription</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
437 438
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment