fix: notice
This commit is contained in:
parent
71c313a078
commit
ac1e2151a9
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user