workflows: get list of manual actions in case of undefined roles (#43491)
This commit is contained in:
parent
69e6f69975
commit
82032a8960
|
@ -1669,8 +1669,8 @@ class WorkflowStatus(object):
|
|||
if not action.identifier:
|
||||
continue
|
||||
roles = action.by
|
||||
functions = [x for x in roles if x in self.parent.roles]
|
||||
roles = [x for x in roles if x not in self.parent.roles]
|
||||
functions = [x for x in roles if x in (self.parent.roles or [])]
|
||||
roles = [x for x in roles if x not in (self.parent.roles or [])]
|
||||
if functions or roles:
|
||||
actions.append({'action': StatusAction(action), 'roles': roles, 'functions': functions})
|
||||
return actions
|
||||
|
|
Loading…
Reference in New Issue