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

Migrate currency security.

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