remove restriction when using open api
This commit is contained in:
@@ -14,6 +14,7 @@ class APITokenAuthMiddleware(MiddlewareMixin):
|
||||
try:
|
||||
request.user = User.objects.get(open_api_appkey=appkey, open_api=True, is_disabled=False)
|
||||
request.csrf_processing_done = True
|
||||
request.auth_method = "api_key"
|
||||
except User.DoesNotExist:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user