Commit 088ae63e authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Clean up security

parent c7e7347f
...@@ -4,9 +4,6 @@ ...@@ -4,9 +4,6 @@
<item>Auditor</item> <item>Auditor</item>
<item>Author</item> <item>Author</item>
</role> </role>
<role id='R-MEMBER'>
<item>Auditor</item>
</role>
<role id='R-SHADOW-PERSON'> <role id='R-SHADOW-PERSON'>
<item>Auditor</item> <item>Auditor</item>
</role> </role>
...@@ -19,8 +16,5 @@ ...@@ -19,8 +16,5 @@
<local_role_group_id id='shadow'> <local_role_group_id id='shadow'>
<principal id='R-SHADOW-PERSON'>Auditor</principal> <principal id='R-SHADOW-PERSON'>Auditor</principal>
</local_role_group_id> </local_role_group_id>
<local_role_group_id id='user'>
<principal id='R-MEMBER'>Auditor</principal>
</local_role_group_id>
</local_role_group_ids> </local_role_group_ids>
</local_roles_item> </local_roles_item>
\ No newline at end of file
...@@ -4,25 +4,11 @@ ...@@ -4,25 +4,11 @@
<item>Auditor</item> <item>Auditor</item>
<item>Author</item> <item>Author</item>
</role> </role>
<role id='R-COMPUTER'>
<item>Author</item>
</role>
<role id='R-INSTANCE'>
<item>Author</item>
</role>
<role id='R-MEMBER'>
<item>Author</item>
</role>
</local_roles> </local_roles>
<local_role_group_ids> <local_role_group_ids>
<local_role_group_id id='group'> <local_role_group_id id='group'>
<principal id='G-COMPANY'>Auditor</principal> <principal id='G-COMPANY'>Auditor</principal>
<principal id='G-COMPANY'>Author</principal> <principal id='G-COMPANY'>Author</principal>
</local_role_group_id> </local_role_group_id>
<local_role_group_id id='user'>
<principal id='R-COMPUTER'>Author</principal>
<principal id='R-INSTANCE'>Author</principal>
<principal id='R-MEMBER'>Author</principal>
</local_role_group_id>
</local_role_group_ids> </local_role_group_ids>
</local_roles_item> </local_roles_item>
\ No newline at end of file
...@@ -4,25 +4,11 @@ ...@@ -4,25 +4,11 @@
<item>Auditor</item> <item>Auditor</item>
<item>Author</item> <item>Author</item>
</role> </role>
<role id='R-COMPUTER'>
<item>Author</item>
</role>
<role id='R-INSTANCE'>
<item>Author</item>
</role>
<role id='R-MEMBER'>
<item>Author</item>
</role>
</local_roles> </local_roles>
<local_role_group_ids> <local_role_group_ids>
<local_role_group_id id='group'> <local_role_group_id id='group'>
<principal id='G-COMPANY'>Auditor</principal> <principal id='G-COMPANY'>Auditor</principal>
<principal id='G-COMPANY'>Author</principal> <principal id='G-COMPANY'>Author</principal>
</local_role_group_id> </local_role_group_id>
<local_role_group_id id='user'>
<principal id='R-COMPUTER'>Author</principal>
<principal id='R-INSTANCE'>Author</principal>
<principal id='R-MEMBER'>Author</principal>
</local_role_group_id>
</local_role_group_ids> </local_role_group_ids>
</local_roles_item> </local_roles_item>
\ No newline at end of file
...@@ -4,25 +4,11 @@ ...@@ -4,25 +4,11 @@
<item>Auditor</item> <item>Auditor</item>
<item>Author</item> <item>Author</item>
</role> </role>
<role id='R-COMPUTER'>
<item>Author</item>
</role>
<role id='R-INSTANCE'>
<item>Author</item>
</role>
<role id='R-MEMBER'>
<item>Author</item>
</role>
</local_roles> </local_roles>
<local_role_group_ids> <local_role_group_ids>
<local_role_group_id id='group'> <local_role_group_id id='group'>
<principal id='G-COMPANY'>Auditor</principal> <principal id='G-COMPANY'>Auditor</principal>
<principal id='G-COMPANY'>Author</principal> <principal id='G-COMPANY'>Author</principal>
</local_role_group_id> </local_role_group_id>
<local_role_group_id id='user'>
<principal id='R-COMPUTER'>Author</principal>
<principal id='R-INSTANCE'>Author</principal>
<principal id='R-MEMBER'>Author</principal>
</local_role_group_id>
</local_role_group_ids> </local_role_group_ids>
</local_roles_item> </local_roles_item>
\ No newline at end of file
<local_roles_item>
<local_roles>
<role id='G-COMPANY'>
<item>Auditor</item>
<item>Author</item>
</role>
</local_roles>
<local_role_group_ids>
<local_role_group_id id='group'>
<principal id='G-COMPANY'>Auditor</principal>
<principal id='G-COMPANY'>Author</principal>
</local_role_group_id>
</local_role_group_ids>
</local_roles_item>
\ No newline at end of file
...@@ -4,25 +4,11 @@ ...@@ -4,25 +4,11 @@
<item>Auditor</item> <item>Auditor</item>
<item>Author</item> <item>Author</item>
</role> </role>
<role id='R-COMPUTER'>
<item>Author</item>
</role>
<role id='R-INSTANCE'>
<item>Author</item>
</role>
<role id='R-MEMBER'>
<item>Author</item>
</role>
</local_roles> </local_roles>
<local_role_group_ids> <local_role_group_ids>
<local_role_group_id id='group'> <local_role_group_id id='group'>
<principal id='G-COMPANY'>Auditor</principal> <principal id='G-COMPANY'>Auditor</principal>
<principal id='G-COMPANY'>Author</principal> <principal id='G-COMPANY'>Author</principal>
</local_role_group_id> </local_role_group_id>
<local_role_group_id id='user'>
<principal id='R-COMPUTER'>Author</principal>
<principal id='R-INSTANCE'>Author</principal>
<principal id='R-MEMBER'>Author</principal>
</local_role_group_id>
</local_role_group_ids> </local_role_group_ids>
</local_roles_item> </local_roles_item>
\ No newline at end of file
<type_roles>
<role id='Assignor'>
<property id='title'>Group company</property>
<multi_property id='categories'>local_role_group/group</multi_property>
<multi_property id='category'>group/company</multi_property>
<multi_property id='base_category'>group</multi_property>
</role>
</type_roles>
\ No newline at end of file
...@@ -5,11 +5,4 @@ ...@@ -5,11 +5,4 @@
<multi_property id='category'>group/company</multi_property> <multi_property id='category'>group/company</multi_property>
<multi_property id='base_category'>group</multi_property> <multi_property id='base_category'>group</multi_property>
</role> </role>
<role id='Author'>
<property id='title'>Security for Shacache (Author)</property>
<multi_property id='categories'>local_role_group/user</multi_property>
<multi_property id='category'>role/member</multi_property>
<multi_property id='category'>role/computer</multi_property>
<multi_property id='category'>role/instance</multi_property>
</role>
</type_roles> </type_roles>
\ No newline at end of file
...@@ -5,11 +5,4 @@ ...@@ -5,11 +5,4 @@
<multi_property id='category'>group/company</multi_property> <multi_property id='category'>group/company</multi_property>
<multi_property id='base_category'>group</multi_property> <multi_property id='base_category'>group</multi_property>
</role> </role>
<role id='Auditor'>
<property id='title'>Shacache Security (Auditor)</property>
<property id='description'>Any user which has a valid assignment where the role is instance must have Auditor role.</property>
<multi_property id='category'>role/computer</multi_property>
<multi_property id='category'>role/member</multi_property>
<multi_property id='category'>role/instance</multi_property>
</role>
</type_roles> </type_roles>
\ No newline at end of file
...@@ -41,6 +41,7 @@ event_module/slapos_crm_web_message_template ...@@ -41,6 +41,7 @@ event_module/slapos_crm_web_message_template
hosting_subscription_module hosting_subscription_module
image_module image_module
inventory_module inventory_module
invitation_token_module
knowledge_pad_module knowledge_pad_module
meeting_module meeting_module
notification_message_module notification_message_module
......
...@@ -27,6 +27,7 @@ Computer Network ...@@ -27,6 +27,7 @@ Computer Network
Computer Network Module Computer Network Module
Computer Partition Computer Partition
Consumption Document Module Consumption Document Module
Contract Invitation Token
Contribution Tool Contribution Tool
Credential Update Module Credential Update Module
Credit Card Credit Card
......
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