Remove session owner check. (#4211)

### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2024-12-24 17:40:31 +08:00 committed by GitHub
parent 03cbbf7784
commit 7d8e0602aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")