Commit de8e4167 authored by Romain Courteaud's avatar Romain Courteaud

Configure integration tool security.

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