Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
a8f96bdc
Commit
a8f96bdc
authored
Nov 04, 2016
by
Kazuhiko Shiozaki
Committed by
Vincent Pelletier
Dec 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form.PreferenceTool: use getId() instead of getIdOrUserName().
parent
fe773036
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5Form/PreferenceTool.py
product/ERP5Form/PreferenceTool.py
+3
-3
No files found.
product/ERP5Form/PreferenceTool.py
View file @
a8f96bdc
...
...
@@ -149,10 +149,10 @@ class PreferenceTool(BaseTool):
# reset a security manager without any proxy role or unrestricted method,
# wich affects the catalog search that we do to find applicable
# preferences.
actual_user
=
acl_users
.
getUser
(
user
.
getIdOrUserName
())
actual_user
=
acl_users
.
getUser
ById
(
user
.
getId
())
if
actual_user
is
not
None
:
newSecurityManager
(
None
,
actual_user
.
__of__
(
acl_users
))
tv_key
=
'PreferenceTool._getSortedPreferenceList/%s/%s'
%
(
user
.
getId
OrUserName
(),
tv_key
=
'PreferenceTool._getSortedPreferenceList/%s/%s'
%
(
user
.
getId
(),
sql_catalog_id
)
if
tv
.
get
(
tv_key
,
None
)
is
None
:
prefs
=
[]
...
...
@@ -284,7 +284,7 @@ class PreferenceTool(BaseTool):
return
False
tv
=
getTransactionalVariable
()
tv_key
=
'PreferenceTool._isAuthenticationPolicyEnabled.%s'
%
getSecurityManager
().
getUser
().
getId
OrUserName
()
tv_key
=
'PreferenceTool._isAuthenticationPolicyEnabled.%s'
%
getSecurityManager
().
getUser
().
getId
()
if
tv
.
get
(
tv_key
,
None
)
is
None
:
_isAuthenticationPolicyEnabled
=
CachingMethod
(
_isAuthenticationPolicyEnabled
,
id
=
'PortalPreferences_isAuthenticationPolicyEnabled'
,
...
...
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