Projet

Général

Profil

0001-search-pass-request-user-to-search-engines-26254.patch

Frédéric Péters, 09 septembre 2018 09:09

Télécharger (899 octets)

Voir les différences:

Subject: [PATCH] search: pass request user to search engines (#26254)

 combo/apps/search/models.py | 1 +
 1 file changed, 1 insertion(+)
combo/apps/search/models.py
140 140
        kwargs = {}
141 141
        kwargs['cache_duration'] = service.get('cache_duration', 0)
142 142
        kwargs['remote_service'] = 'auto' if service.get('signature') else None
143
        kwargs['user'] = request.user
143 144
        results = requests.get(url, **kwargs).json()
144 145
        hit_templates = {}
145 146
        if service.get('hit_url_template'):
146
-