We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e16c74 commit 4cf2b74Copy full SHA for 4cf2b74
apps/chat/serializers/chat_authentication.py
@@ -59,6 +59,8 @@ def profile(self):
59
application_access_token = QuerySet(ApplicationAccessToken).filter(access_token=access_token).first()
60
if application_access_token is None:
61
raise NotFound404(404, _("Invalid access_token"))
62
+ if not application_access_token.is_active:
63
+ raise NotFound404(404, _("Invalid access_token"))
64
application_id = application_access_token.application_id
65
profile = {
66
'authentication': False
0 commit comments