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
Carlos Ramos Carreño
slapos.core
Commits
0a545f1b
Commit
0a545f1b
authored
Dec 11, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give auditor to shadow on organisations.
parent
be0c90bc
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
3 deletions
+36
-3
master/bt5/slapos_erp5/LocalRolesTemplateItem/organisation_module.xml
...lapos_erp5/LocalRolesTemplateItem/organisation_module.xml
+3
-0
master/bt5/slapos_erp5/LocalRolesTemplateItem/organisation_module/slapos.xml
...rp5/LocalRolesTemplateItem/organisation_module/slapos.xml
+16
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Organisation%20Module.xml
...rp5/PortalTypeRolesTemplateItem/Organisation%20Module.xml
+5
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Organisation.xml
.../slapos_erp5/PortalTypeRolesTemplateItem/Organisation.xml
+5
-0
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
..._erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
+4
-2
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
No files found.
master/bt5/slapos_erp5/LocalRolesTemplateItem/organisation_module.xml
View file @
0a545f1b
...
@@ -10,6 +10,9 @@
...
@@ -10,6 +10,9 @@
<role
id=
'R-MEMBER'
>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
<item>
Auditor
</item>
</role>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<role
id=
'zope'
>
<item>
Owner
</item>
<item>
Owner
</item>
</role>
</role>
...
...
master/bt5/slapos_erp5/LocalRolesTemplateItem/organisation_module/slapos.xml
0 → 100644
View file @
0a545f1b
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Assignor
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
</local_roles>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Organisation%20Module.xml
View file @
0a545f1b
...
@@ -14,4 +14,9 @@
...
@@ -14,4 +14,9 @@
<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'
>
Person Shadow
</property>
<multi_property
id=
'category'
>
role/shadow/person
</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/Organisation.xml
View file @
0a545f1b
...
@@ -9,4 +9,9 @@
...
@@ -9,4 +9,9 @@
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'category'
>
role/member
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
</role>
<role
id=
'Auditor'
>
<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>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
0a545f1b
...
@@ -389,9 +389,10 @@ class TestOrganisation(TestSlapOSGroupRoleSecurityMixin):
...
@@ -389,9 +389,10 @@ class TestOrganisation(TestSlapOSGroupRoleSecurityMixin):
portal_type
=
'Organisation'
)
portal_type
=
'Organisation'
)
organisation
.
updateLocalRolesOnSecurityGroups
()
organisation
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
organisation
,
self
.
assertSecurityGroup
(
organisation
,
[
'G-COMPANY'
,
self
.
user_id
,
'R-MEMBER'
],
False
)
[
'G-COMPANY'
,
self
.
user_id
,
'R-MEMBER'
,
'R-SHADOW-PERSON'
],
False
)
self
.
assertRoles
(
organisation
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
organisation
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
organisation
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
organisation
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
organisation
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
organisation
,
self
.
user_id
,
[
'Owner'
])
self
.
assertRoles
(
organisation
,
self
.
user_id
,
[
'Owner'
])
test_Member
=
test_GroupCompany
test_Member
=
test_GroupCompany
...
@@ -400,10 +401,11 @@ class TestOrganisationModule(TestSlapOSGroupRoleSecurityMixin):
...
@@ -400,10 +401,11 @@ class TestOrganisationModule(TestSlapOSGroupRoleSecurityMixin):
def
test
(
self
):
def
test
(
self
):
module
=
self
.
portal
.
organisation_module
module
=
self
.
portal
.
organisation_module
self
.
assertSecurityGroup
(
module
,
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'R-COMPUTER'
,
'R-MEMBER'
,
'zope'
],
False
)
[
'G-COMPANY'
,
'R-COMPUTER'
,
'R-MEMBER'
,
'zope'
,
'R-SHADOW-PERSON'
],
False
)
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'R-COMPUTER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'R-COMPUTER'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestPDF
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestPDF
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
master/bt5/slapos_erp5/bt/revision
View file @
0a545f1b
137
138
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
0a545f1b
...
@@ -20,6 +20,7 @@ meeting_module
...
@@ -20,6 +20,7 @@ meeting_module
notification_message_module
notification_message_module
open_sale_order_module
open_sale_order_module
organisation_module
organisation_module
organisation_module/slapos
person_module
person_module
portal_contributions
portal_contributions
portal_gadgets
portal_gadgets
...
...
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
0a545f1b
...
@@ -20,6 +20,7 @@ meeting_module
...
@@ -20,6 +20,7 @@ meeting_module
notification_message_module
notification_message_module
open_sale_order_module
open_sale_order_module
organisation_module
organisation_module
organisation_module/slapos
person_module
person_module
portal_contributions
portal_contributions
portal_gadgets
portal_gadgets
...
...
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