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,11 +100,13 @@ ...@@ -100,11 +100,13 @@
</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>
<key> <string>_log</string> </key>
<value>
<list> <list>
<dictionary> <dictionary>
<item> <item>
...@@ -117,8 +119,9 @@ ...@@ -117,8 +119,9 @@
</item> </item>
</dictionary> </dictionary>
</list> </list>
<none/> </value>
</tuple> </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