Commit de8e4167 authored by Romain Courteaud's avatar Romain Courteaud

Configure integration tool security.

parent ce15290a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<role id='ERP5TypeTestCase'> <role id='ERP5TypeTestCase'>
<item>Owner</item> <item>Owner</item>
</role> </role>
<role id='R-MEMBER'> <role id='R-SHADOW-PERSON'>
<item>Auditor</item> <item>Auditor</item>
</role> </role>
</local_roles> </local_roles>
......
<local_roles_item> <local_roles_item>
<local_roles> <local_roles>
<role id='R-SHADOW-PERSON'>
<item>Auditor</item>
<item>Author</item>
</role>
<role id='zope'> <role id='zope'>
<item>Owner</item> <item>Owner</item>
</role> </role>
......
<type_roles> <type_roles>
<role id='Auditor; Author'> <role id='Auditor; Author'>
<property id='title'>Member</property> <property id='title'>Person Shadow</property>
<multi_property id='category'>role/member</multi_property> <multi_property id='category'>role/shadow/person</multi_property>
<multi_property id='base_category'>role</multi_property> <multi_property id='base_category'>role</multi_property>
</role> </role>
</type_roles> </type_roles>
\ No newline at end of file
<type_roles> <type_roles>
<role id='Auditor'> <role id='Auditor'>
<property id='title'>Member</property> <property id='title'>Person Shadow</property>
<multi_property id='category'>role/member</multi_property> <multi_property id='category'>role/shadow/person</multi_property>
<multi_property id='base_category'>role</multi_property> <multi_property id='base_category'>role</multi_property>
</role> </role>
</type_roles> </type_roles>
\ No newline at end of file
...@@ -1373,3 +1373,21 @@ class TestWebPage(TestSlapOSGroupRoleSecurityMixin): ...@@ -1373,3 +1373,21 @@ class TestWebPage(TestSlapOSGroupRoleSecurityMixin):
['G-COMPANY', self.user_id], False) ['G-COMPANY', self.user_id], False)
self.assertRoles(product, 'G-COMPANY', ['Assignor']) self.assertRoles(product, 'G-COMPANY', ['Assignor'])
self.assertRoles(product, self.user_id, ['Owner']) self.assertRoles(product, self.user_id, ['Owner'])
class TestIntegrationTool(TestSlapOSGroupRoleSecurityMixin):
def test(self):
module = self.portal.portal_integrations
self.assertSecurityGroup(module,
['R-SHADOW-PERSON', 'ERP5TypeTestCase'], False)
self.assertRoles(module, 'R-SHADOW-PERSON', ['Auditor'])
self.assertRoles(module, 'ERP5TypeTestCase', ['Owner'])
class TestIntegrationSite(TestSlapOSGroupRoleSecurityMixin):
def test(self):
module = self.portal.portal_integrations
product = module.newContent(
portal_type='Integration Site')
self.assertSecurityGroup(product,
['R-SHADOW-PERSON', self.user_id], False)
self.assertRoles(product, 'R-SHADOW-PERSON', ['Auditor', 'Author'])
self.assertRoles(product, self.user_id, ['Owner'])
129 130
\ No newline at end of file \ No newline at end of file
...@@ -22,6 +22,8 @@ organisation_module ...@@ -22,6 +22,8 @@ organisation_module
person_module person_module
portal_contributions portal_contributions
portal_gadgets portal_gadgets
portal_integrations
portal_integrations/slapos_payzen_test_integration
product_module product_module
purchase_order_module purchase_order_module
purchase_trade_condition_module purchase_trade_condition_module
......
...@@ -22,6 +22,8 @@ organisation_module ...@@ -22,6 +22,8 @@ organisation_module
person_module person_module
portal_contributions portal_contributions
portal_gadgets portal_gadgets
portal_integrations
portal_integrations/slapos_payzen_test_integration
product_module product_module
purchase_order_module purchase_order_module
purchase_trade_condition_module purchase_trade_condition_module
......
...@@ -38,6 +38,8 @@ Hosting Subscription ...@@ -38,6 +38,8 @@ Hosting Subscription
Hosting Subscription Module Hosting Subscription Module
Image Image
Image Module Image Module
Integration Site
Integration Tool
Inventory Inventory
Inventory Module Inventory Module
Knowledge Box Knowledge Box
......
...@@ -38,6 +38,8 @@ Hosting Subscription ...@@ -38,6 +38,8 @@ Hosting Subscription
Hosting Subscription Module Hosting Subscription Module
Image Image
Image Module Image Module
Integration Site
Integration Tool
Inventory Inventory
Inventory Module Inventory Module
Knowledge Box Knowledge Box
......
7 8
\ No newline at end of file \ No newline at end of file
portal_integrations
portal_integrations/slapos_payzen_test_integration
system_event_module system_event_module
\ No newline at end of file
portal_integrations
portal_integrations/slapos_payzen_test_integration
system_event_module system_event_module
\ No newline at end of file
Business Process Business Process
Business Process Module Business Process Module
Integration Site
Integration Tool
Payzen Event Payzen Event
System Event Module System Event Module
\ No newline at end of file
Business Process Business Process
Business Process Module Business Process Module
Integration Site
Integration Tool
Payzen Event Payzen Event
System Event Module System Event Module
\ 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