Projet

Général

Profil

0001-agent-authentic2-test-if-ou-is-None-in-provisionning.patch

Benjamin Dauvergne, 13 août 2019 13:01

Télécharger (1,09 ko)

Voir les différences:

Subject: [PATCH] agent-authentic2: test if ou is None in provisionning
 (#35385)

 hobo/agent/authentic2/provisionning.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hobo/agent/authentic2/provisionning.py
104 104
                # filter user's roles visible by the service's ou
105 105
                roles = [role for role in user_roles.get(user.id, [])
106 106
                         if (not role.slug.startswith('_')
107
                             and (role.ou_id is None or role.ou_id == ou.id))]
107
                             and (role.ou_id is None or (ou and role.ou_id == ou.id)))]
108 108
                data.update({
109 109
                    'uuid': user.uuid,
110 110
                    'username': user.username,
111
-