add missing returns

This commit is contained in:
wh1te909 2024-06-15 23:16:37 +00:00
parent 77e141e84a
commit fa656e1f56
1 changed files with 2 additions and 0 deletions

View File

@ -41,9 +41,11 @@ class DashInfo(AsyncJsonWebsocketConsumer):
if isinstance(self.user, AnonymousUser):
await self.close()
return
if self.user.block_dashboard_login:
await self.close()
return
await self.accept()
self.connected = True