Commit 524b1101 authored by Aurel's avatar Aurel

self.REQUEST does not always exists, and the call method does not use

it at all, use None instead


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44667 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00e7e32d
......@@ -154,7 +154,7 @@ class PreferenceTool(BaseTool):
# preferences.
actual_user = acl_users.getUser(str(user))
if actual_user is not None:
newSecurityManager(self.REQUEST, actual_user.__of__(acl_users))
newSecurityManager(None, actual_user.__of__(acl_users))
tv_key = 'PreferenceTool._getSortedPreferenceList/%s/%s' % (user,
sql_catalog_id)
if tv.get(tv_key, None) is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment