base: fix problem that in some view context we don't have matchdict.
This commit is contained in:
parent
1ed9cf6561
commit
a8da93e8ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue