Commit d5af56f4 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: instance of the project can access compute nodes

parent 7095b1f6
...@@ -14,4 +14,11 @@ ...@@ -14,4 +14,11 @@
<multi_property id='categories'>local_role_group/computer</multi_property> <multi_property id='categories'>local_role_group/computer</multi_property>
<multi_property id='base_category'>destination_decision</multi_property> <multi_property id='base_category'>destination_decision</multi_property>
</role> </role>
<role id='Auditor'>
<property id='title'>Software Instance</property>
<property id='condition'>python: context.getFollowUp("") != ""</property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromContent</property>
<multi_property id='category'>role/instance</multi_property>
<multi_property id='base_category'>follow_up</multi_property>
</role>
</type_roles> </type_roles>
\ No newline at end of file
...@@ -20,6 +20,7 @@ return ( ...@@ -20,6 +20,7 @@ return (
# Instance security # Instance security
('ERP5Type_getSoftwareInstanceSecurityCategory', ['role']), ('ERP5Type_getSoftwareInstanceSecurityCategory', ['role']),
('ERP5Type_getSoftwareInstanceSecurityCategory', ['destination_project', 'role']),
('ERP5Type_getSoftwareInstanceSecurityCategory', ['aggregate']), ('ERP5Type_getSoftwareInstanceSecurityCategory', ['aggregate']),
) )
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