Commit 731bb09d authored by Romain Courteaud's avatar Romain Courteaud

Allow shadow user to create system event.

parent ccd5e55a
......@@ -3,7 +3,11 @@
<role id='ERP5TypeTestCase'>
<item>Owner</item>
</role>
<role id='R-MEMBER'>
<role id='G-COMPANY'>
<item>Auditor</item>
<item>Author</item>
</role>
<role id='R-SHADOW-PERSON'>
<item>Author</item>
</role>
</local_roles>
......
<type_roles>
<role id='Author; Auditor'>
<property id='title'>Group company</property>
<multi_property id='category'>group/company</multi_property>
<multi_property id='base_category'>group</multi_property>
</role>
<role id='Author'>
<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
......@@ -1408,3 +1408,12 @@ class TestIntegrationSite(TestSlapOSGroupRoleSecurityMixin):
['R-SHADOW-PERSON', self.user_id], False)
self.assertRoles(product, 'R-SHADOW-PERSON', ['Auditor', 'Author'])
self.assertRoles(product, self.user_id, ['Owner'])
class TestSystemEventModule(TestSlapOSGroupRoleSecurityMixin):
def test(self):
module = self.portal.system_event_module
self.assertSecurityGroup(module,
['R-SHADOW-PERSON', 'ERP5TypeTestCase', 'G-COMPANY'], False)
self.assertRoles(module, 'R-SHADOW-PERSON', ['Author'])
self.assertRoles(module, 'G-COMPANY', ['Auditor', 'Author'])
self.assertRoles(module, 'ERP5TypeTestCase', ['Owner'])
131
\ No newline at end of file
132
\ No newline at end of file
......@@ -38,5 +38,6 @@ software_instance_module
software_product_module
software_release_module
support_request_module
system_event_module
transformation_module
web_page_module
\ No newline at end of file
......@@ -38,5 +38,6 @@ software_instance_module
software_product_module
software_release_module
support_request_module
system_event_module
transformation_module
web_page_module
\ No newline at end of file
......@@ -96,6 +96,7 @@ Software Release Module
Spreadsheet
Support Request
Support Request Module
System Event Module
Text
Transformation
Transformation Module
......
......@@ -96,6 +96,7 @@ Software Release Module
Spreadsheet
Support Request
Support Request Module
System Event Module
Text
Transformation
Transformation Module
......
<type_roles>
<role id='Author'>
<property id='title'>Member</property>
<multi_property id='category'>role/member</multi_property>
<multi_property id='base_category'>role</multi_property>
</role>
</type_roles>
\ No newline at end of file
8
\ No newline at end of file
9
\ No newline at end of file
system_event_module
\ No newline at end of file
system_event_module
\ No newline at end of file
Business Process
Business Process Module
Payzen Event
System Event Module
\ No newline at end of file
Payzen Event
\ No newline at end of file
Business Process
Business Process Module
Payzen Event
System Event Module
\ No newline at end of file
Payzen Event
\ 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