From 3162c229cfd7545703f73cc43930d088ee386dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 9 Sep 2018 09:07:25 +0200 Subject: [PATCH] search: pass request user to search engines (#26254) --- combo/apps/search/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/combo/apps/search/models.py b/combo/apps/search/models.py index cac995ab..234f36bb 100644 --- a/combo/apps/search/models.py +++ b/combo/apps/search/models.py @@ -140,6 +140,7 @@ class SearchCell(CellBase): kwargs = {} kwargs['cache_duration'] = service.get('cache_duration', 0) kwargs['remote_service'] = 'auto' if service.get('signature') else None + kwargs['user'] = request.user results = requests.get(url, **kwargs).json() hit_templates = {} if service.get('hit_url_template'): -- 2.19.0.rc2