Commit e34f7c7d authored by Jérome Perrin's avatar Jérome Perrin

spec= is not a valid argument for portal catalog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30368 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfbb9450
...@@ -59,8 +59,8 @@ pref = sci[\'object\']\n ...@@ -59,8 +59,8 @@ pref = sci[\'object\']\n
portal = sci.getPortal()\n portal = sci.getPortal()\n
LOG = lambda msg: pref.log("PreferenceWorkflow.disableOtherPreferences on %s"%pref, msg)\n LOG = lambda msg: pref.log("PreferenceWorkflow.disableOtherPreferences on %s"%pref, msg)\n
\n \n
# deactivate all other preferences of the same level \n # deactivate all other preferences of the same level that the user can view\n
for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n for p in portal.portal_preferences.searchFolder():\n
p = p.getObject()\n p = p.getObject()\n
try :\n try :\n
if portal.portal_membership.getAuthenticatedMember().allowed(p, [\'Owner\', ]) :\n if portal.portal_membership.getAuthenticatedMember().allowed(p, [\'Owner\', ]) :\n
......
1368 1369
\ No newline at end of file \ No newline at end of file
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