mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-09 16:58:49 +00:00
remove dead code -> permission class does that already
This commit is contained in:
parent
a4d94f31c8
commit
6848787885
@ -162,11 +162,6 @@ class GetAuthToken(APIView):
|
|||||||
'token': token.key,
|
'token': token.key,
|
||||||
})
|
})
|
||||||
|
|
||||||
else:
|
|
||||||
return Response({
|
|
||||||
'error': 'User not authenticated',
|
|
||||||
})
|
|
||||||
|
|
||||||
def logout(self, request):
|
def logout(self, request):
|
||||||
try:
|
try:
|
||||||
request.user.auth_token.delete()
|
request.user.auth_token.delete()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user