Skip to content

Commit 4cf2b74

Browse files
authored
fix: After enabling application access authentication, closing the public access connection will still display the application login page (#3675)
1 parent 6e16c74 commit 4cf2b74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/chat/serializers/chat_authentication.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def profile(self):
5959
application_access_token = QuerySet(ApplicationAccessToken).filter(access_token=access_token).first()
6060
if application_access_token is None:
6161
raise NotFound404(404, _("Invalid access_token"))
62+
if not application_access_token.is_active:
63+
raise NotFound404(404, _("Invalid access_token"))
6264
application_id = application_access_token.application_id
6365
profile = {
6466
'authentication': False

0 commit comments

Comments
 (0)