Commit 67d84e86 authored by Romain Courteaud's avatar Romain Courteaud

Migrate currency security.

parent a07d1bac
......@@ -4,9 +4,6 @@
<item>Auditor</item>
<item>Author</item>
</role>
<role id='R-MEMBER'>
<item>Auditor</item>
</role>
<role id='admin'>
<item>Owner</item>
</role>
......
......@@ -4,9 +4,4 @@
<multi_property id='category'>group/company</multi_property>
<multi_property id='base_category'>group</multi_property>
</role>
<role id='Auditor'>
<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
......@@ -4,9 +4,4 @@
<multi_property id='category'>group/company</multi_property>
<multi_property id='base_category'>group</multi_property>
</role>
<role id='Auditor'>
<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
......@@ -897,3 +897,21 @@ class TestAccount(TestSlapOSGroupRoleSecurityMixin):
['G-COMPANY', self.user_id], False)
self.assertRoles(product, 'G-COMPANY', ['Assignor'])
self.assertRoles(product, self.user_id, ['Owner'])
class TestCurrencyModule(TestSlapOSGroupRoleSecurityMixin):
def test(self):
module = self.portal.currency_module
self.assertSecurityGroup(module,
['G-COMPANY', 'admin'], True)
self.assertRoles(module, 'G-COMPANY', ['Auditor', 'Author'])
self.assertRoles(module, 'admin', ['Owner'])
class TestCurrency(TestSlapOSGroupRoleSecurityMixin):
def test_GroupCompany(self):
product = self.portal.currency_module.newContent(
portal_type='Currency')
product.updateLocalRolesOnSecurityGroups()
self.assertSecurityGroup(product,
['G-COMPANY', self.user_id], False)
self.assertRoles(product, 'G-COMPANY', ['Assignor'])
self.assertRoles(product, self.user_id, ['Owner'])
85
\ No newline at end of file
86
\ No newline at end of file
......@@ -4,6 +4,7 @@ computer_model_module
computer_module
computer_network_module
credential_update_module
currency_module
data_set_module
document_module
hosting_subscription_module
......
......@@ -4,6 +4,7 @@ computer_model_module
computer_module
computer_network_module
credential_update_module
currency_module
data_set_module
document_module
hosting_subscription_module
......
......@@ -13,6 +13,8 @@ Computer Network Module
Computer Partition
Contribution Tool
Credential Update Module
Currency
Currency Module
Data Set
Data Set Module
Document Module
......
......@@ -13,6 +13,8 @@ Computer Network Module
Computer Partition
Contribution Tool
Credential Update Module
Currency
Currency Module
Data Set
Data Set Module
Document Module
......
562
\ No newline at end of file
563
\ No newline at end of file
......@@ -14,7 +14,6 @@ business_process_module/vifib_purchase_business_process
business_process_module/vifib_sale_business_process
campaign_module
component_module
currency_module
currency_module/EUR
document_ingestion_module
event_module
......
......@@ -14,7 +14,6 @@ business_process_module/vifib_purchase_business_process
business_process_module/vifib_sale_business_process
campaign_module
component_module
currency_module
currency_module/EUR
document_ingestion_module
event_module
......
......@@ -9,8 +9,6 @@ Cash Register
Component
Component Module
Credit Card
Currency
Currency Module
Document Ingestion Module
Event Module
Fax Message
......
......@@ -9,8 +9,6 @@ Cash Register
Component
Component Module
Credit Card
Currency
Currency Module
Document Ingestion Module
Event Module
Fax Message
......
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