aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/authentication.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/authentication.py')
-rw-r--r--rest_framework/authentication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py
index fd597397..f8954428 100644
--- a/rest_framework/authentication.py
+++ b/rest_framework/authentication.py
@@ -126,7 +126,7 @@ class TokenAuthentication(BaseAuthentication):
except self.model.DoesNotExist:
return None
- if token.user.is_active and not getattr(token, 'revoked', False):
+ if token.user.is_active:
return (token.user, token)
# TODO: OAuthAuthentication