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
Eric Zheng
slapos.core
Commits
a07d1bac
Commit
a07d1bac
authored
Nov 12, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate account module security.
parent
f24f32f8
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
25 additions
and
21 deletions
+25
-21
master/bt5/slapos_erp5/LocalRolesTemplateItem/account_module.xml
...bt5/slapos_erp5/LocalRolesTemplateItem/account_module.xml
+0
-3
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Account%20Module.xml
...pos_erp5/PortalTypeRolesTemplateItem/Account%20Module.xml
+0
-5
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Account.xml
...r/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Account.xml
+0
-5
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
..._erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
+17
-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/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/account_module.xml
→
master/bt5/
slapos
_erp5/LocalRolesTemplateItem/account_module.xml
View file @
a07d1bac
...
...
@@ -4,9 +4,6 @@
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-MEMBER'
>
<item>
Auditor
</item>
</role>
<role
id=
'zope'
>
<item>
Owner
</item>
</role>
...
...
master/bt5/
vifib
_erp5/PortalTypeRolesTemplateItem/Account%20Module.xml
→
master/bt5/
slapos
_erp5/PortalTypeRolesTemplateItem/Account%20Module.xml
View file @
a07d1bac
...
...
@@ -4,9 +4,4 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</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>
</type_roles>
\ No newline at end of file
master/bt5/
vifib
_erp5/PortalTypeRolesTemplateItem/Account.xml
→
master/bt5/
slapos
_erp5/PortalTypeRolesTemplateItem/Account.xml
View file @
a07d1bac
...
...
@@ -4,9 +4,4 @@
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</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>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5GroupRoleSecurity.py
View file @
a07d1bac
...
...
@@ -880,3 +880,20 @@ class TestService(TestSlapOSGroupRoleSecurityMixin):
self
.
assertRoles
(
product
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
product
,
self
.
user_id
,
[
'Owner'
])
class
TestAccountModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
module
=
self
.
portal
.
account_module
self
.
assertSecurityGroup
(
module
,
[
'G-COMPANY'
,
'zope'
],
False
)
self
.
assertRoles
(
module
,
'G-COMPANY'
,
[
'Auditor'
,
'Author'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestAccount
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_GroupCompany
(
self
):
product
=
self
.
portal
.
account_module
.
newContent
(
portal_type
=
'Account'
)
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 @
a07d1bac
84
\ No newline at end of file
85
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_local_role_list
View file @
a07d1bac
account_module
accounting_module
computer_model_module
computer_module
...
...
master/bt5/slapos_erp5/bt/template_local_roles_list
View file @
a07d1bac
account_module
accounting_module
computer_model_module
computer_module
...
...
master/bt5/slapos_erp5/bt/template_portal_type_role_list
View file @
a07d1bac
Account
Account Module
Accounting Transaction
Accounting Transaction Module
Assignment
...
...
master/bt5/slapos_erp5/bt/template_portal_type_roles_list
View file @
a07d1bac
Account
Account Module
Accounting Transaction
Accounting Transaction Module
Assignment
...
...
master/bt5/vifib_erp5/bt/revision
View file @
a07d1bac
561
\ No newline at end of file
562
\ No newline at end of file
master/bt5/vifib_erp5/bt/template_local_role_list
View file @
a07d1bac
account_module
account_module/bank
account_module/capital
account_module/coll_vat
...
...
master/bt5/vifib_erp5/bt/template_local_roles_list
View file @
a07d1bac
account_module
account_module/bank
account_module/capital
account_module/coll_vat
...
...
master/bt5/vifib_erp5/bt/template_portal_type_role_list
View file @
a07d1bac
Account
Account Module
Accounting Period
Acknowledgement
Bank Account
...
...
master/bt5/vifib_erp5/bt/template_portal_type_roles_list
View file @
a07d1bac
Account
Account Module
Accounting Period
Acknowledgement
Bank Account
...
...
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