# HG changeset patch # User Marcin Kuzminski # Date 2019-10-23 11:17:47 # Node ID e35e4c7735b25021f106849260c9662d23c9cc67 # Parent 1e9547aa81c0bd5713a578389ea81b7273b40bee base: fix problem that in some view context we don't have matchdict. diff --git a/rhodecode/lib/base.py b/rhodecode/lib/base.py --- 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: