From 7d8e0602aa1de8b58384f63b10e6f996a01d78cc Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Tue, 24 Dec 2024 17:40:31 +0800 Subject: [PATCH] Remove session owner check. (#4211) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/sdk/session.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/apps/sdk/session.py b/api/apps/sdk/session.py index d755472ca..42b08d509 100644 --- a/api/apps/sdk/session.py +++ b/api/apps/sdk/session.py @@ -247,8 +247,6 @@ def list_agent_session(tenant_id, agent_id): if not UserCanvasService.query(user_id=tenant_id, id=agent_id): return get_error_data_result(message=f"You don't own the agent {agent_id}.") id = request.args.get("id") - if not API4ConversationService.query(id=id, user_id=tenant_id): - return get_error_data_result(f"You don't own the session {id}") page_number = int(request.args.get("page", 1)) items_per_page = int(request.args.get("page_size", 30)) orderby = request.args.get("orderby", "update_time")