no abort when socketio

master
Aevann 2024-04-09 17:09:37 +02:00
parent a51125e21b
commit 376776e306
1 changed files with 1 additions and 2 deletions

View File

@ -69,8 +69,7 @@ def speak(data, v):
chat_id = int(data['chat_id'])
chat = g.db.get(Chat, chat_id)
if not chat:
abort(404, "Chat not found!")
if not chat: return ''
if chat.id == 1:
if not v.allowed_in_chat: return ''