Commit 84c0ef9f authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Any organisation can lead to security settings as long there is assignment to it

parent 40fa9ff0
...@@ -100,25 +100,28 @@ ...@@ -100,25 +100,28 @@
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/>
</pickle> </pickle>
<pickle> <pickle>
<tuple> <dictionary>
<none/> <item>
<list> <key> <string>_log</string> </key>
<dictionary> <value>
<item> <list>
<key> <string>action</string> </key> <dictionary>
<value> <string>validate</string> </value> <item>
</item> <key> <string>action</string> </key>
<item> <value> <string>validate</string> </value>
<key> <string>validation_state</string> </key> </item>
<value> <string>validated</string> </value> <item>
</item> <key> <string>validation_state</string> </key>
</dictionary> <value> <string>validated</string> </value>
</list> </item>
<none/> </dictionary>
</tuple> </list>
</value>
</item>
</dictionary>
</pickle> </pickle>
</record> </record>
</ZopeData> </ZopeData>
...@@ -186,8 +186,7 @@ def getSecurityCategoryFromAssignmentDestinationClientOrganisation( ...@@ -186,8 +186,7 @@ def getSecurityCategoryFromAssignmentDestinationClientOrganisation(
category_value_list = assignment.getAcquiredValueList(base_category) category_value_list = assignment.getAcquiredValueList(base_category)
if category_value_list: if category_value_list:
for category_value in category_value_list: for category_value in category_value_list:
if category_value.getPortalType() == "Organisation" and \ if category_value.getPortalType() == "Organisation":
category_value.getRole() == "client":
category_dict.setdefault(base_category, []).append(category_value.getRelativeUrl()) category_dict.setdefault(base_category, []).append(category_value.getRelativeUrl())
category_list.append(category_dict) category_list.append(category_dict)
......
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