fixed user preference api endpoint

This commit is contained in:
vabene1111
2022-06-08 17:48:23 +02:00
parent e368488933
commit d5b7d440fe
4 changed files with 29 additions and 13 deletions

View File

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