From fa656e1f5629a247a01a15ef2857c06bd87f5b7f Mon Sep 17 00:00:00 2001 From: wh1te909 <7434746+wh1te909@users.noreply.github.com> Date: Sat, 15 Jun 2024 23:16:37 +0000 Subject: [PATCH] add missing returns --- api/tacticalrmm/core/consumers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/tacticalrmm/core/consumers.py b/api/tacticalrmm/core/consumers.py index 23bb4440..1c56f311 100644 --- a/api/tacticalrmm/core/consumers.py +++ b/api/tacticalrmm/core/consumers.py @@ -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