From 2d89863fddbb360934c6687ecbbdf620f2a5dbbe Mon Sep 17 00:00:00 2001 From: Yongteng Lei Date: Wed, 27 Aug 2025 18:50:02 +0800 Subject: [PATCH] Fix: search list permission (#9767) ### What problem does this PR solve? Search list permission. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/search_app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/apps/search_app.py b/api/apps/search_app.py index 80e27a092..0df7743f6 100644 --- a/api/apps/search_app.py +++ b/api/apps/search_app.py @@ -155,8 +155,9 @@ def list_search_app(): owner_ids = req.get("owner_ids", []) try: if not owner_ids: - tenants = TenantService.get_joined_tenants_by_user_id(current_user.id) - tenants = [m["tenant_id"] for m in tenants] + # tenants = TenantService.get_joined_tenants_by_user_id(current_user.id) + # tenants = [m["tenant_id"] for m in tenants] + tenants = [] search_apps, total = SearchService.get_by_tenant_ids(tenants, current_user.id, page_number, items_per_page, orderby, desc, keywords) else: tenants = owner_ids