Projet

Général

Profil

0001-misc-fix-handling-of-AnonymousUser-when-doing-signed.patch

Frédéric Péters, 07 avril 2016 18:30

Télécharger (1,13 ko)

Voir les différences:

Subject: [PATCH] misc: fix handling of AnonymousUser when doing signed
 requests (#10583)

 combo/utils.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
combo/utils.py
45 45
        raise_if_not_cached = kwargs.pop('raise_if_not_cached', False)
46 46

  
47 47
        if remote_service:
48
            if not user:
48
            if isinstance(user, dict):
49
                query_params = user.copy()
50
            elif not user or not user.is_authenticated():
49 51
                if without_user:
50 52
                    query_params = {}
51 53
                else:
52 54
                    query_params = {'NameID': '', 'email': ''}
53
            elif isinstance(user, dict):
54
                query_params = user.copy()
55 55
            else:
56 56
                query_params = {}
57 57
                if federation_key == 'nameid':
58
-