workflows: pass workflow when checking for actions available globally (#11445)
This commit is contained in:
parent
687a2456ce
commit
faf0f59b8a
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue