Commit 7fea6b2e authored by Jérome Perrin's avatar Jérome Perrin

I forgot this one in r13451 (handle the case of 'Site' preference, they must

have different security definition ... )


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13510 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 063b1d1f
......@@ -197,7 +197,7 @@ class PreferenceTool(BaseTool):
for pref in self.searchFolder(portal_type='Preference') :
pref = pref.getObject()
if pref is not None and pref.getProperty('preference_state',
'broken') == 'enabled' :
'broken') in ('enabled', 'global'):
# XXX quick workaround so that manager only see user preference
# they actually own.
if user_is_manager and pref.getPriority() == Priority.USER :
......
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