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
Paul Graydon
slapos.core
Commits
731bb09d
Commit
731bb09d
authored
Dec 10, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow shadow user to create system event.
parent
ccd5e55a
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
34 additions
and
16 deletions
+34
-16
master/bt5/slapos_erp5/LocalRolesTemplateItem/system_event_module.xml
...lapos_erp5/LocalRolesTemplateItem/system_event_module.xml
+5
-1
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/System%20Event%20Module.xml
...5/PortalTypeRolesTemplateItem/System%20Event%20Module.xml
+12
-0
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
..._erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
+9
-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
+1
-0
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
+1
-0
master/bt5/slapos_incubation/PortalTypeRolesTemplateItem/System%20Event%20Module.xml
...n/PortalTypeRolesTemplateItem/System%20Event%20Module.xml
+0
-7
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
-1
master/bt5/slapos_incubation/bt/template_local_roles_list
master/bt5/slapos_incubation/bt/template_local_roles_list
+0
-1
master/bt5/slapos_incubation/bt/template_portal_type_role_list
...r/bt5/slapos_incubation/bt/template_portal_type_role_list
+1
-2
master/bt5/slapos_incubation/bt/template_portal_type_roles_list
.../bt5/slapos_incubation/bt/template_portal_type_roles_list
+1
-2
No files found.
master/bt5/slapos_
incubation
/LocalRolesTemplateItem/system_event_module.xml
→
master/bt5/slapos_
erp5
/LocalRolesTemplateItem/system_event_module.xml
View file @
731bb09d
...
...
@@ -3,7 +3,11 @@
<role
id=
'ERP5TypeTestCase'
>
<item>
Owner
</item>
</role>
<role
id=
'R-MEMBER'
>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Author
</item>
</role>
</local_roles>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/System%20Event%20Module.xml
0 → 100644
View file @
731bb09d
<type_roles>
<role
id=
'Author; Auditor'
>
<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=
'Author'
>
<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 @
731bb09d
...
...
@@ -1408,3 +1408,12 @@ class TestIntegrationSite(TestSlapOSGroupRoleSecurityMixin):
[
'R-SHADOW-PERSON'
,
self
.
user_id
],
False
)
self
.
assertRoles
(
product
,
'R-SHADOW-PERSON'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestSystemEventModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
system_event_module
self
.
assertSecurityGroup
(
module
,
[
'R-SHADOW-PERSON'
,
'ERP5TypeTestCase'
,
'G-COMPANY'
],
False
)
self
.
assertRoles
(
module
,
'R-SHADOW-PERSON'
,
[
'Author'
])
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'ERP5TypeTestCase'
,
[
'Owner'
])
master/bt5/slapos_erp5/bt/revision
View file @
731bb09d
131
\ No newline at end of file
132
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
731bb09d
...
...
@@ -38,5 +38,6 @@ software_instance_module
software_product_module
software_release_module
support_request_module
system_event_module
transformation_module
web_page_module
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
731bb09d
...
...
@@ -38,5 +38,6 @@ software_instance_module
software_product_module
software_release_module
support_request_module
system_event_module
transformation_module
web_page_module
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_portal_type_role_list
View file @
731bb09d
...
...
@@ -96,6 +96,7 @@ Software Release Module
Spreadsheet
Support Request
Support Request Module
System Event Module
Text
Transformation
Transformation Module
...
...
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
View file @
731bb09d
...
...
@@ -96,6 +96,7 @@ Software Release Module
Spreadsheet
Support Request
Support Request Module
System Event Module
Text
Transformation
Transformation Module
...
...
master/bt5/slapos_incubation/PortalTypeRolesTemplateItem/System%20Event%20Module.xml
deleted
100644 → 0
View file @
ccd5e55a
<type_roles>
<role
id=
'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>
\ No newline at end of file
master/bt5/slapos_incubation/bt/revision
View file @
731bb09d
8
\ No newline at end of file
9
\ No newline at end of file
master/bt5/slapos_incubation/bt/template_local_role_list
deleted
100644 → 0
View file @
ccd5e55a
system_event_module
\ No newline at end of file
master/bt5/slapos_incubation/bt/template_local_roles_list
deleted
100644 → 0
View file @
ccd5e55a
system_event_module
\ No newline at end of file
master/bt5/slapos_incubation/bt/template_portal_type_role_list
View file @
731bb09d
Business Process
Business Process Module
Payzen Event
System Event Module
\ No newline at end of file
Payzen Event
\ No newline at end of file
master/bt5/slapos_incubation/bt/template_portal_type_roles_list
View file @
731bb09d
Business Process
Business Process Module
Payzen Event
System Event Module
\ No newline at end of file
Payzen Event
\ 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