Commit 64bfe34e authored by Jérome Perrin's avatar Jérome Perrin

Only disable preference the user owns


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6196 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c866b915
......@@ -75,7 +75,7 @@ N_ = context.Base_translateString\n
for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n
p = p.getObject()\n
try :\n
if portal.portal_membership.getAuthenticatedMember().allowed(p, [\'Owner\', \'Assignor\']) :\n
if portal.portal_membership.getAuthenticatedMember().allowed(p, [\'Owner\', ]) :\n
if p != pref and \\\n
p.getPreferenceState() == \'enabled\' and \\\n
p.getPriority() == pref.getPriority() :\n
......
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