base: fix problem that in some view context we don't have matchdict.

This commit is contained in:
Marcin Kuzminski 2019-10-23 13:17:47 +02:00
parent 1ed9cf6561
commit a8da93e8ac

View file

@ -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: