workflows: pass workflow when checking for actions available globally (#11445)

This commit is contained in:
Frédéric Péters 2016-06-20 16:12:28 +02:00
parent 687a2456ce
commit faf0f59b8a
1 changed files with 1 additions and 1 deletions

View File

@ -1101,7 +1101,7 @@ class GlobalActionPage(WorkflowStatusPage):
return Directory._q_traverse(self, path)
def is_item_available(self, item):
return item.is_available() and item.ok_in_global_action
return item.is_available(self.workflow) and item.ok_in_global_action
def _q_index(self):
self.html_top('%s - %s' % (_('Workflow'), self.workflow.name))