Commit 2bcaafe8 authored by Jérome Perrin's avatar Jérome Perrin

return immediatly if no worklists



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11760 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 669341df
...@@ -65,9 +65,10 @@ def DCWorkflowDefinition_listGlobalActions(self, info): ...@@ -65,9 +65,10 @@ def DCWorkflowDefinition_listGlobalActions(self, info):
Called on every request. Called on every request.
Returns the actions to be displayed to the user. Returns the actions to be displayed to the user.
''' '''
if not self.worklists:
return None # Optimization
def _listGlobalActions(user=None, id=None, portal_path=None): def _listGlobalActions(user=None, id=None, portal_path=None):
if not self.worklists:
return None # Optimization
sm = getSecurityManager() sm = getSecurityManager()
portal = self._getPortalRoot() portal = self._getPortalRoot()
res = [] res = []
......
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