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
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
Levin Zimmermann
erp5
Commits
87462555
Commit
87462555
authored
Dec 09, 2014
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PreferenceTool: fix _getPreference Unauthorized
parent
e30bc877
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
product/ERP5Form/PreferenceTool.py
product/ERP5Form/PreferenceTool.py
+1
-2
No files found.
product/ERP5Form/PreferenceTool.py
View file @
87462555
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
setSecurityManager
,
newSecurityManager
setSecurityManager
,
newSecurityManager
from
AccessControl.ZopeGuards
import
guarded_getattr
from
MethodObject
import
Method
from
MethodObject
import
Method
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
...
@@ -73,7 +72,7 @@ class PreferenceMethod(Method):
...
@@ -73,7 +72,7 @@ class PreferenceMethod(Method):
# there is a design problem in current archive API.
# there is a design problem in current archive API.
sql_catalog_id
=
kw
.
pop
(
'sql_catalog_id'
,
None
)
sql_catalog_id
=
kw
.
pop
(
'sql_catalog_id'
,
None
)
for
pref
in
instance
.
_getSortedPreferenceList
(
sql_catalog_id
=
sql_catalog_id
):
for
pref
in
instance
.
_getSortedPreferenceList
(
sql_catalog_id
=
sql_catalog_id
):
value
=
g
uarded_g
etattr
(
pref
,
self
.
_preference_getter
)(
_marker
,
*
args
,
**
kw
)
value
=
getattr
(
pref
,
self
.
_preference_getter
)(
_marker
,
*
args
,
**
kw
)
# XXX Due to UI limitation, null value is treated as if the property
# XXX Due to UI limitation, null value is treated as if the property
# was not defined. The drawback is that it is not possible for a
# was not defined. The drawback is that it is not possible for a
# user to mask a non-null global value with a null value.
# user to mask a non-null global value with a null value.
...
...
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