Projet

Général

Profil

0001-workflows-get-list-of-manual-actions-in-case-of-unde.patch

Frédéric Péters, 30 mai 2020 10:36

Télécharger (1,09 ko)

Voir les différences:

Subject: [PATCH] workflows: get list of manual actions in case of undefined
 roles (#43491)

 wcs/workflows.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
wcs/workflows.py
1673 1673
            if not action.identifier:
1674 1674
                continue
1675 1675
            roles = action.by
1676
            functions = [x for x in roles if x in self.parent.roles]
1677
            roles = [x for x in roles if x not in self.parent.roles]
1676
            functions = [x for x in roles if x in (self.parent.roles or [])]
1677
            roles = [x for x in roles if x not in (self.parent.roles or [])]
1678 1678
            if functions or roles:
1679 1679
                actions.append({'action': StatusAction(action), 'roles': roles, 'functions': functions})
1680 1680
        return actions
1681
-