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
Klaus Wölfel
slapos.core
Commits
836467ed
Commit
836467ed
authored
Dec 10, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give view access to shadow on currency.
parent
c96ca99a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
3 deletions
+18
-3
master/bt5/slapos_erp5/LocalRolesTemplateItem/currency_module.xml
...t5/slapos_erp5/LocalRolesTemplateItem/currency_module.xml
+3
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
...os_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
+5
-0
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency.xml
.../bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency.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
No files found.
master/bt5/slapos_erp5/LocalRolesTemplateItem/currency_module.xml
View file @
836467ed
...
...
@@ -4,6 +4,9 @@
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-SHADOW-PERSON'
>
<item>
Auditor
</item>
</role>
<role
id=
'admin'
>
<item>
Owner
</item>
</role>
...
...
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency%20Module.xml
View file @
836467ed
...
...
@@ -4,4 +4,9 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</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>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Currency.xml
View file @
836467ed
...
...
@@ -4,4 +4,9 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</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>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
836467ed
...
...
@@ -919,8 +919,9 @@ class TestCurrencyModule(TestSlapOSGroupRoleSecurityMixin):
def
test
(
self
):
module
=
self
.
portal
.
currency_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'admin'
],
True
)
[
'G-COMPANY'
,
'admin'
,
'R-SHADOW-PERSON'
],
True
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'admin'
,
[
'Owner'
])
class
TestCurrency
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
@@ -929,8 +930,9 @@ class TestCurrency(TestSlapOSGroupRoleSecurityMixin):
portal_type
=
'Currency'
)
product
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
product
,
[
'G-COMPANY'
,
self
.
user_id
],
False
)
[
'G-COMPANY'
,
self
.
user_id
,
'R-SHADOW-PERSON'
],
False
)
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
'R-SHADOW-PERSON'
,
[
'Auditor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestSaleTradeConditionModule
(
TestSlapOSGroupRoleSecurityMixin
):
...
...
master/bt5/slapos_erp5/bt/revision
View file @
836467ed
134
\ No newline at end of file
135
\ 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