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

Allow shadow user to create system event.

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