mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
fixed user preference api endpoint
This commit is contained in:
@@ -16,9 +16,9 @@ class ScopeMiddleware:
|
||||
prefix = settings.JS_REVERSE_SCRIPT_PREFIX or ''
|
||||
|
||||
# need to disable scopes for writing requests into userpref and enable for loading ?
|
||||
# if request.path.startswith(prefix + '/api/user-preference/'):
|
||||
# with scopes_disabled():
|
||||
# return self.get_response(request)
|
||||
if request.path.startswith(prefix + '/api/user-preference/'):
|
||||
with scopes_disabled():
|
||||
return self.get_response(request)
|
||||
|
||||
if request.user.is_authenticated:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user