add missing returns
This commit is contained in:
parent
77e141e84a
commit
fa656e1f56
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue