mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-04-21 17:22:06 +03:00
KnoxTokenAuthentication won't exist unless REST_USE_KNOX
This commit is contained in:
parent
cc37193efd
commit
cb3c859919
|
@ -156,7 +156,8 @@ class LogoutAllView(APIView):
|
|||
|
||||
Accepts/Returns nothing.
|
||||
"""
|
||||
authentication_classes = (KnoxTokenAuthentication,)
|
||||
if getattr(settings, 'REST_USE_KNOX', False):
|
||||
authentication_classes = (KnoxTokenAuthentication,)
|
||||
permission_classes = (IsAuthenticated,)
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue
Block a user