mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 15:48:27 -05:00
fixed undefined var
This commit is contained in:
@@ -13,9 +13,9 @@ class ScopeMiddleware:
|
|||||||
self.get_response = get_response
|
self.get_response = get_response
|
||||||
|
|
||||||
def __call__(self, request):
|
def __call__(self, request):
|
||||||
|
prefix = settings.JS_REVERSE_SCRIPT_PREFIX or ''
|
||||||
if request.user.is_authenticated:
|
if request.user.is_authenticated:
|
||||||
|
|
||||||
prefix = settings.JS_REVERSE_SCRIPT_PREFIX or ''
|
|
||||||
if request.path.startswith(prefix + '/admin/'):
|
if request.path.startswith(prefix + '/admin/'):
|
||||||
with scopes_disabled():
|
with scopes_disabled():
|
||||||
return self.get_response(request)
|
return self.get_response(request)
|
||||||
|
|||||||
Reference in New Issue
Block a user