From a8da93e8ac6db08fa76c1383765eb3ea37810f52 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Wed, 23 Oct 2019 13:17:47 +0200 Subject: [PATCH] base: fix problem that in some view context we don't have matchdict. --- rhodecode/lib/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/lib/base.py b/rhodecode/lib/base.py index b4b0a208..7a261df8 100644 --- a/rhodecode/lib/base.py +++ b/rhodecode/lib/base.py @@ -466,7 +466,7 @@ def get_auth_user(request): # make sure that we update permissions each time we call controller _auth_token = (request.GET.get('auth_token', '') or request.GET.get('api_key', '')) - if not _auth_token: + if not _auth_token and request.matchdict: url_auth_token = request.matchdict.get('_auth_token') _auth_token = url_auth_token if _auth_token: