Skip to content

Commit 2d89863

Browse files
authored
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)
1 parent 6cb3e08 commit 2d89863

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/apps/search_app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ def list_search_app():
155155
owner_ids = req.get("owner_ids", [])
156156
try:
157157
if not owner_ids:
158-
tenants = TenantService.get_joined_tenants_by_user_id(current_user.id)
159-
tenants = [m["tenant_id"] for m in tenants]
158+
# tenants = TenantService.get_joined_tenants_by_user_id(current_user.id)
159+
# tenants = [m["tenant_id"] for m in tenants]
160+
tenants = []
160161
search_apps, total = SearchService.get_by_tenant_ids(tenants, current_user.id, page_number, items_per_page, orderby, desc, keywords)
161162
else:
162163
tenants = owner_ids

0 commit comments

Comments
 (0)