Skip to content

Commit

Permalink
set the default the workspace to current
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Sep 13, 2024
1 parent 7e558ee commit e525248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypha/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ async def list_services(
if isinstance(query, str):
visibility = "*"
type_filter = "*"
workspace = "*"
workspace = cws
client_id = "*"
service_id = "*"

Expand Down Expand Up @@ -643,7 +643,7 @@ async def list_services(

# Automatically limit visibility to public if workspace is "*"
original_visibility = query.get("visibility", "*")
workspace = query.get("workspace", "*")
workspace = query.get("workspace", cws)
if workspace == "*":
assert (
original_visibility != "protected"
Expand Down

0 comments on commit e525248

Please sign in to comment.