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
Ivan Tyagov
slapos.core
Commits
de8e4167
Commit
de8e4167
authored
Dec 10, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure integration tool security.
parent
ce15290a
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
54 additions
and
11 deletions
+54
-11
master/bt5/slapos_erp5/LocalRolesTemplateItem/portal_integrations.xml
...lapos_erp5/LocalRolesTemplateItem/portal_integrations.xml
+1
-1
master/bt5/slapos_erp5/LocalRolesTemplateItem/portal_integrations/slapos_payzen_test_integration.xml
...em/portal_integrations/slapos_payzen_test_integration.xml
+11
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Integration%20Site.xml
...s_erp5/PortalTypeRolesTemplateItem/Integration%20Site.xml
+7
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Integration%20Tool.xml
...s_erp5/PortalTypeRolesTemplateItem/Integration%20Tool.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
+2
-0
master/bt5/slapos_erp5/bt/template_local_roles_list
master/bt5/slapos_erp5/bt/template_local_roles_list
+2
-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/slapos_incubation/bt/revision
master/bt5/slapos_incubation/bt/revision
+1
-1
master/bt5/slapos_incubation/bt/template_local_role_list
master/bt5/slapos_incubation/bt/template_local_role_list
+0
-2
master/bt5/slapos_incubation/bt/template_local_roles_list
master/bt5/slapos_incubation/bt/template_local_roles_list
+0
-2
master/bt5/slapos_incubation/bt/template_portal_type_role_list
...r/bt5/slapos_incubation/bt/template_portal_type_role_list
+0
-2
master/bt5/slapos_incubation/bt/template_portal_type_roles_list
.../bt5/slapos_incubation/bt/template_portal_type_roles_list
+0
-2
No files found.
master/bt5/slapos_
incubation
/LocalRolesTemplateItem/portal_integrations.xml
→
master/bt5/slapos_
erp5
/LocalRolesTemplateItem/portal_integrations.xml
View file @
de8e4167
...
...
@@ -3,7 +3,7 @@
<role
id=
'ERP5TypeTestCase'
>
<item>
Owner
</item>
</role>
<role
id=
'R-
MEMBER
'
>
<role
id=
'R-
SHADOW-PERSON
'
>
<item>
Auditor
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_
incubation
/LocalRolesTemplateItem/portal_integrations/slapos_payzen_test_integration.xml
→
master/bt5/slapos_
erp5
/LocalRolesTemplateItem/portal_integrations/slapos_payzen_test_integration.xml
View file @
de8e4167
<local_roles_item>
<local_roles>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'zope'
>
<item>
Owner
</item>
</role>
...
...
master/bt5/slapos_
incubation
/PortalTypeRolesTemplateItem/Integration%20Site.xml
→
master/bt5/slapos_
erp5
/PortalTypeRolesTemplateItem/Integration%20Site.xml
View file @
de8e4167
<type_roles>
<role
id=
'Auditor; Author'
>
<property
id=
'title'
>
Member
</property>
<multi_property
id=
'category'
>
role/
member
</multi_property>
<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>
\ No newline at end of file
master/bt5/slapos_
incubation
/PortalTypeRolesTemplateItem/Integration%20Tool.xml
→
master/bt5/slapos_
erp5
/PortalTypeRolesTemplateItem/Integration%20Tool.xml
View file @
de8e4167
<type_roles>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Member
</property>
<multi_property
id=
'category'
>
role/
member
</multi_property>
<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>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
de8e4167
...
...
@@ -1373,3 +1373,21 @@ class TestWebPage(TestSlapOSGroupRoleSecurityMixin):
[
'G-COMPANY'
,
self
.
user_id
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestIntegrationTool
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
portal_integrations
self
.
assertSecurityGroup
(
module
,
[
'R-SHADOW-PERSON'
,
'ERP5TypeTestCase'
],
False
)
self
.
assertRoles
(
module
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'ERP5TypeTestCase'
,
[
'Owner'
])
class
TestIntegrationSite
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
portal_integrations
product
=
module
.
newContent
(
portal_type
=
'Integration Site'
)
self
.
assertSecurityGroup
(
product
,
[
'R-SHADOW-PERSON'
,
self
.
user_id
],
False
)
self
.
assertRoles
(
product
,
'R-SHADOW-PERSON'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
master/bt5/slapos_erp5/bt/revision
View file @
de8e4167
129
\ No newline at end of file
130
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
de8e4167
...
...
@@ -22,6 +22,8 @@ organisation_module
person_module
portal_contributions
portal_gadgets
portal_integrations
portal_integrations/slapos_payzen_test_integration
product_module
purchase_order_module
purchase_trade_condition_module
...
...
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
de8e4167
...
...
@@ -22,6 +22,8 @@ organisation_module
person_module
portal_contributions
portal_gadgets
portal_integrations
portal_integrations/slapos_payzen_test_integration
product_module
purchase_order_module
purchase_trade_condition_module
...
...
master/bt5/slapos_erp5/bt/template_portal_type_role_list
View file @
de8e4167
...
...
@@ -38,6 +38,8 @@ Hosting Subscription
Hosting Subscription Module
Image
Image Module
Integration Site
Integration Tool
Inventory
Inventory Module
Knowledge Box
...
...
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
View file @
de8e4167
...
...
@@ -38,6 +38,8 @@ Hosting Subscription
Hosting Subscription Module
Image
Image Module
Integration Site
Integration Tool
Inventory
Inventory Module
Knowledge Box
...
...
master/bt5/slapos_incubation/bt/revision
View file @
de8e4167
7
\ No newline at end of file
8
\ No newline at end of file
master/bt5/slapos_incubation/bt/template_local_role_list
View file @
de8e4167
portal_integrations
portal_integrations/slapos_payzen_test_integration
system_event_module
\ No newline at end of file
master/bt5/slapos_incubation/bt/template_local_roles_list
View file @
de8e4167
portal_integrations
portal_integrations/slapos_payzen_test_integration
system_event_module
\ No newline at end of file
master/bt5/slapos_incubation/bt/template_portal_type_role_list
View file @
de8e4167
Business Process
Business Process Module
Integration Site
Integration Tool
Payzen Event
System Event Module
\ No newline at end of file
master/bt5/slapos_incubation/bt/template_portal_type_roles_list
View file @
de8e4167
Business Process
Business Process Module
Integration Site
Integration Tool
Payzen Event
System Event Module
\ No newline at end of file
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