Skip to content

Commit

Permalink
add missing returns
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jun 15, 2024
1 parent dd77a7b commit e3aba5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/tacticalrmm/core/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ async def connect(self):

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
Expand Down

0 comments on commit e3aba5e

Please sign in to comment.