fix: notice
This commit is contained in:
@ -89,5 +89,6 @@ class NoticeConsumer(WebsocketConsumer):
|
|||||||
notice_manager.add(self)
|
notice_manager.add(self)
|
||||||
|
|
||||||
def disconnect(self, code):
|
def disconnect(self, code):
|
||||||
notice_manager.remove(self)
|
if self.scope['user'].is_authenticated:
|
||||||
|
notice_manager.remove(self)
|
||||||
super().disconnect(code)
|
super().disconnect(code)
|
||||||
|
Reference in New Issue
Block a user