Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.core
Commits
67d84e86
Commit
67d84e86
authored
Nov 12, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate currency security.
parent
a07d1bac
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
26 additions
and
21 deletions
+26
-21
master/bt5/slapos_erp5/LocalRolesTemplateItem/currency_module.xml
...t5/slapos_erp5/LocalRolesTemplateItem/currency_module.xml
+0
-3
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
...os_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
+0
-5
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency.xml
.../bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency.xml
+0
-5
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
..._erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
+18
-0
master/bt5/slapos_erp5/bt/revision
master/bt5/slapos_erp5/bt/revision
+1
-1
master/bt5/slapos_erp5/bt/template_local_role_list
master/bt5/slapos_erp5/bt/template_local_role_list
+1
-0
master/bt5/slapos_erp5/bt/template_local_roles_list
master/bt5/slapos_erp5/bt/template_local_roles_list
+1
-0
master/bt5/slapos_erp5/bt/template_portal_type_role_list
master/bt5/slapos_erp5/bt/template_portal_type_role_list
+2
-0
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
+2
-0
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
master/bt5/vifib_erp5/bt/template_local_role_list
master/bt5/vifib_erp5/bt/template_local_role_list
+0
-1
master/bt5/vifib_erp5/bt/template_local_roles_list
master/bt5/vifib_erp5/bt/template_local_roles_list
+0
-1
master/bt5/vifib_erp5/bt/template_portal_type_role_list
master/bt5/vifib_erp5/bt/template_portal_type_role_list
+0
-2
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
+0
-2
No files found.
master/bt5/
vifib
_erp5/LocalRolesTemplateItem/currency_module.xml
→
master/bt5/
slapos
_erp5/LocalRolesTemplateItem/currency_module.xml
View file @
67d84e86
...
...
@@ -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>
...
...
master/bt5/
vifib
_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
→
master/bt5/
slapos
_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
View file @
67d84e86
...
...
@@ -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
master/bt5/
vifib
_erp5/PortalTypeRolesTemplateItem/Currency.xml
→
master/bt5/
slapos
_erp5/PortalTypeRolesTemplateItem/Currency.xml
View file @
67d84e86
...
...
@@ -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
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
67d84e86
...
...
@@ -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'
])
master/bt5/slapos_erp5/bt/revision
View file @
67d84e86
85
\ No newline at end of file
86
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
67d84e86
...
...
@@ -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
...
...
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
67d84e86
...
...
@@ -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
...
...
master/bt5/slapos_erp5/bt/template_portal_type_role_list
View file @
67d84e86
...
...
@@ -13,6 +13,8 @@ Computer Network Module
Computer Partition
Contribution Tool
Credential Update Module
Currency
Currency Module
Data Set
Data Set Module
Document Module
...
...
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
View file @
67d84e86
...
...
@@ -13,6 +13,8 @@ Computer Network Module
Computer Partition
Contribution Tool
Credential Update Module
Currency
Currency Module
Data Set
Data Set Module
Document Module
...
...
master/bt5/vifib_erp5/bt/revision
View file @
67d84e86
562
\ No newline at end of file
563
\ No newline at end of file
master/bt5/vifib_erp5/bt/template_local_role_list
View file @
67d84e86
...
...
@@ -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
...
...
master/bt5/vifib_erp5/bt/template_local_roles_list
View file @
67d84e86
...
...
@@ -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
...
...
master/bt5/vifib_erp5/bt/template_portal_type_role_list
View file @
67d84e86
...
...
@@ -9,8 +9,6 @@ Cash Register
Component
Component Module
Credit Card
Currency
Currency Module
Document Ingestion Module
Event Module
Fax Message
...
...
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
View file @
67d84e86
...
...
@@ -9,8 +9,6 @@ Cash Register
Component
Component Module
Credit Card
Currency
Currency Module
Document Ingestion Module
Event Module
Fax Message
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment