Skip to content

Commit 43e24b9

Browse files
authored
fix: Debugging applications requiring authentication results in errors (#5035)
1 parent cbf942f commit 43e24b9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/chat/serializers/chat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,8 @@ def chat(self, instance: dict, base_to_response: BaseToResponse = SystemToRespon
460460
chat_info.get_application()
461461
chat_info.get_chat_user(asker=(instance.get('form_data') or {}).get('asker'))
462462
self.is_valid_chat_id(chat_info)
463-
self.is_valid_chat_user()
463+
if not self.data.get('debug'):
464+
self.is_valid_chat_user()
464465
if chat_info.application.type == ApplicationTypeChoices.SIMPLE:
465466
self.is_valid_application_simple(raise_exception=True, chat_info=chat_info)
466467
return self.chat_simple(chat_info, instance, base_to_response)

0 commit comments

Comments
 (0)