Commit c96ca99a authored by Romain Courteaud's avatar Romain Courteaud

Give auditor role to shadow user.

parent b87c6970
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
<item>Auditor</item> <item>Auditor</item>
<item>Author</item> <item>Author</item>
</role> </role>
<role id='R-SHADOW-PERSON'>
<item>Auditor</item>
</role>
<role id='zope'> <role id='zope'>
<item>Owner</item> <item>Owner</item>
</role> </role>
......
...@@ -4,4 +4,9 @@ ...@@ -4,4 +4,9 @@
<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'>Person Shadow</property>
<multi_property id='category'>role/shadow/person</multi_property>
<multi_property id='base_category'>role</multi_property>
</role>
</type_roles> </type_roles>
\ No newline at end of file
...@@ -807,8 +807,9 @@ class TestAccountingTransactionModule(TestSlapOSGroupRoleSecurityMixin): ...@@ -807,8 +807,9 @@ class TestAccountingTransactionModule(TestSlapOSGroupRoleSecurityMixin):
def test(self): def test(self):
module = self.portal.accounting_module module = self.portal.accounting_module
self.assertSecurityGroup(module, self.assertSecurityGroup(module,
['G-COMPANY', 'zope'], True) ['G-COMPANY', 'zope', 'R-SHADOW-PERSON'], True)
self.assertRoles(module, 'G-COMPANY', ['Auditor', 'Author']) self.assertRoles(module, 'G-COMPANY', ['Auditor', 'Author'])
self.assertRoles(module, 'R-SHADOW-PERSON', ['Auditor'])
self.assertRoles(module, 'zope', ['Owner']) self.assertRoles(module, 'zope', ['Owner'])
class TestAccountingTransaction(TestSlapOSGroupRoleSecurityMixin): class TestAccountingTransaction(TestSlapOSGroupRoleSecurityMixin):
......
133 134
\ 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