diff --git a/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/preference_workflow/scripts/disableOtherPreferences.xml b/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/preference_workflow/scripts/disableOtherPreferences.xml index 2c7f05db2ded18fa8fbffaf5fbe1552b1974e217..b21c2af225b94375fb47205257043d32498e1586 100644 --- a/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/preference_workflow/scripts/disableOtherPreferences.xml +++ b/product/ERP5/bootstrap/erp5_core/WorkflowTemplateItem/portal_workflow/preference_workflow/scripts/disableOtherPreferences.xml @@ -59,8 +59,8 @@ pref = sci[\'object\']\n portal = sci.getPortal()\n LOG = lambda msg: pref.log("PreferenceWorkflow.disableOtherPreferences on %s"%pref, msg)\n \n -# deactivate all other preferences of the same level \n -for p in portal.portal_preferences.searchFolder(spec=(\'ERP5 Preference\',)) :\n +# deactivate all other preferences of the same level that the user can view\n +for p in portal.portal_preferences.searchFolder():\n p = p.getObject()\n try :\n if portal.portal_membership.getAuthenticatedMember().allowed(p, [\'Owner\', ]) :\n diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 5f9cb42f7c5773a92fd9637fbb4dd0abaef22143..c197cc7a221727aaf2359bbe23a781d89f37135c 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1368 \ No newline at end of file +1369 \ No newline at end of file