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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
6ed80d3a
Commit
6ed80d3a
authored
Nov 12, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate sale trade condition security.
parent
67d84e86
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
40 additions
and
37 deletions
+40
-37
master/bt5/slapos_erp5/LocalRolesTemplateItem/sale_trade_condition_module.xml
...p5/LocalRolesTemplateItem/sale_trade_condition_module.xml
+0
-7
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition%20Module.xml
...peRolesTemplateItem/Sale%20Trade%20Condition%20Module.xml
+7
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition.xml
.../PortalTypeRolesTemplateItem/Sale%20Trade%20Condition.xml
+7
-0
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/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition.xml
.../PortalTypeRolesTemplateItem/Sale%20Trade%20Condition.xml
+0
-22
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/sale_trade_condition_module.xml
→
master/bt5/
slapos
_erp5/LocalRolesTemplateItem/sale_trade_condition_module.xml
View file @
6ed80d3a
...
@@ -4,13 +4,6 @@
...
@@ -4,13 +4,6 @@
<item>
Auditor
</item>
<item>
Auditor
</item>
<item>
Author
</item>
<item>
Author
</item>
</role>
</role>
<role
id=
'R-INSTANCE'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'admin'
>
<role
id=
'admin'
>
<item>
Owner
</item>
<item>
Owner
</item>
</role>
</role>
...
...
master/bt5/
vifib
_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition%20Module.xml
→
master/bt5/
slapos
_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition%20Module.xml
View file @
6ed80d3a
...
@@ -4,14 +4,4 @@
...
@@ -4,14 +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'
>
Instance
</property>
<multi_property
id=
'category'
>
role/instance
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Auditor; 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>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition.xml
0 → 100644
View file @
6ed80d3a
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
6ed80d3a
...
@@ -915,3 +915,21 @@ class TestCurrency(TestSlapOSGroupRoleSecurityMixin):
...
@@ -915,3 +915,21 @@ class TestCurrency(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
TestSaleTradeConditionModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
sale_trade_condition_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'admin'
],
False
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'admin'
,
[
'Owner'
])
class
TestSaleTradeCondition
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_GroupCompany
(
self
):
product
=
self
.
portal
.
sale_trade_condition_module
.
newContent
(
portal_type
=
'Sale Trade Condition'
)
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 @
6ed80d3a
86
87
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
6ed80d3a
...
@@ -15,6 +15,7 @@ person_module
...
@@ -15,6 +15,7 @@ person_module
portal_contributions
portal_contributions
sale_order_module
sale_order_module
sale_packing_list_module
sale_packing_list_module
sale_trade_condition_module
service_module
service_module
software_installation_module
software_installation_module
software_instance_module
software_instance_module
...
...
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
6ed80d3a
...
@@ -15,6 +15,7 @@ person_module
...
@@ -15,6 +15,7 @@ person_module
portal_contributions
portal_contributions
sale_order_module
sale_order_module
sale_packing_list_module
sale_packing_list_module
sale_trade_condition_module
service_module
service_module
software_installation_module
software_installation_module
software_instance_module
software_instance_module
...
...
master/bt5/slapos_erp5/bt/template_portal_type_role_list
View file @
6ed80d3a
...
@@ -39,6 +39,8 @@ Sale Order
...
@@ -39,6 +39,8 @@ Sale Order
Sale Order Module
Sale Order Module
Sale Packing List
Sale Packing List
Sale Packing List Module
Sale Packing List Module
Sale Trade Condition
Sale Trade Condition Module
Service
Service
Service Module
Service Module
Slave Instance
Slave Instance
...
...
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
View file @
6ed80d3a
...
@@ -39,6 +39,8 @@ Sale Order
...
@@ -39,6 +39,8 @@ Sale Order
Sale Order Module
Sale Order Module
Sale Packing List
Sale Packing List
Sale Packing List Module
Sale Packing List Module
Sale Trade Condition
Sale Trade Condition Module
Service
Service
Service Module
Service Module
Slave Instance
Slave Instance
...
...
master/bt5/vifib_erp5/PortalTypeRolesTemplateItem/Sale%20Trade%20Condition.xml
deleted
100644 → 0
View file @
67d84e86
<type_roles>
<role
id=
'Assignor'
>
<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=
'Auditor'
>
<property
id=
'title'
>
Instance
</property>
<multi_property
id=
'category'
>
role/instance
</multi_property>
<multi_property
id=
'base_category'
>
role
</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>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Provider of the trade condition
</property>
<property
id=
'base_category_script'
>
ERP5Type_getSecurityCategoryFromContent
</property>
<multi_property
id=
'base_category'
>
source_section
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/vifib_erp5/bt/revision
View file @
6ed80d3a
563
564
\ No newline at end of file
\ No newline at end of file
master/bt5/vifib_erp5/bt/template_local_role_list
View file @
6ed80d3a
...
@@ -51,7 +51,6 @@ purchase_packing_list_module
...
@@ -51,7 +51,6 @@ purchase_packing_list_module
purchase_trade_condition_module
purchase_trade_condition_module
query_module
query_module
sale_opportunity_module
sale_opportunity_module
sale_trade_condition_module
sale_trade_condition_module/vifib_trade_condition
sale_trade_condition_module/vifib_trade_condition
service_module/computer_registration
service_module/computer_registration
service_module/vifib_discount
service_module/vifib_discount
...
...
master/bt5/vifib_erp5/bt/template_local_roles_list
View file @
6ed80d3a
...
@@ -51,7 +51,6 @@ purchase_packing_list_module
...
@@ -51,7 +51,6 @@ purchase_packing_list_module
purchase_trade_condition_module
purchase_trade_condition_module
query_module
query_module
sale_opportunity_module
sale_opportunity_module
sale_trade_condition_module
sale_trade_condition_module/vifib_trade_condition
sale_trade_condition_module/vifib_trade_condition
service_module/computer_registration
service_module/computer_registration
service_module/vifib_discount
service_module/vifib_discount
...
...
master/bt5/vifib_erp5/bt/template_portal_type_role_list
View file @
6ed80d3a
...
@@ -44,8 +44,6 @@ Query
...
@@ -44,8 +44,6 @@ Query
Query Module
Query Module
Sale Opportunity
Sale Opportunity
Sale Opportunity Module
Sale Opportunity Module
Sale Trade Condition
Sale Trade Condition Module
Short Message
Short Message
Site Message
Site Message
Support Request
Support Request
...
...
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
View file @
6ed80d3a
...
@@ -44,8 +44,6 @@ Query
...
@@ -44,8 +44,6 @@ Query
Query Module
Query Module
Sale Opportunity
Sale Opportunity
Sale Opportunity Module
Sale Opportunity Module
Sale Trade Condition
Sale Trade Condition Module
Short Message
Short Message
Site Message
Site Message
Support Request
Support Request
...
...
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