Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
erp5
Commits
0c8b5117
Commit
0c8b5117
authored
May 10, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
products/* fix typo on Access content*s* information permission name
parent
13c0f2e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
product/ERP5/Tool/PasswordTool.py
product/ERP5/Tool/PasswordTool.py
+1
-1
product/ERP5Type/tests/testERP5Type.py
product/ERP5Type/tests/testERP5Type.py
+3
-3
No files found.
product/ERP5/Tool/PasswordTool.py
View file @
0c8b5117
...
...
@@ -158,7 +158,7 @@ class PasswordTool(BaseTool):
user_value
=
self
.
getPortalObject
().
unrestrictedTraverse
(
user_path
)
email_value
=
user_value
.
getDefaultEmailValue
(
checked_permission
=
'Access content information'
)
checked_permission
=
Permissions
.
AccessContentsInformation
)
if
email_value
is
None
or
not
email_value
.
asText
():
msg
=
translateString
(
"User ${user} does not have an email address, please contact site "
...
...
product/ERP5Type/tests/testERP5Type.py
View file @
0c8b5117
...
...
@@ -2613,7 +2613,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self
.
assertFalse
(
guarded_hasattr
(
obj
,
'setFooBar'
))
self
.
assertTrue
(
guarded_hasattr
(
obj
,
'getFooBar'
))
# getter is protected with Access content information
# getter is protected with Access content
s
information
obj
.
manage_permission
(
Permissions
.
ModifyPortalContent
,
[
'Manager'
],
1
)
obj
.
manage_permission
(
Permissions
.
AccessContentsInformation
,
[],
0
)
self
.
assertTrue
(
guarded_hasattr
(
obj
,
'setFooBar'
))
...
...
@@ -2635,7 +2635,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self
.
assertFalse
(
guarded_hasattr
(
obj
,
'setFooBarList'
))
self
.
assertTrue
(
guarded_hasattr
(
obj
,
'getFooBarList'
))
# getter is protected with Access content information
# getter is protected with Access content
s
information
obj
.
manage_permission
(
Permissions
.
ModifyPortalContent
,
[
'Manager'
],
1
)
obj
.
manage_permission
(
Permissions
.
AccessContentsInformation
,
[],
0
)
self
.
assertTrue
(
guarded_hasattr
(
obj
,
'setFooBarList'
))
...
...
@@ -2664,7 +2664,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self
.
assertTrue
(
guarded_hasattr
(
obj
,
'getRegionList'
))
self
.
assertTrue
(
guarded_hasattr
(
obj
,
'getRegionValueList'
))
self
.
assertTrue
(
guarded_hasattr
(
obj
,
'getRegionRelatedValueList'
))
# getter is protected with Access content information
# getter is protected with Access content
s
information
obj
.
manage_permission
(
Permissions
.
ModifyPortalContent
,
[
'Manager'
],
1
)
obj
.
manage_permission
(
Permissions
.
AccessContentsInformation
,
[],
0
)
self
.
assertTrue
(
guarded_hasattr
(
obj
,
'setRegion'
))
...
...
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