Skip to content

Commit 366f9c0

Browse files
fix: clarify docstring for global admin behavior
1 parent 878759e commit 366f9c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dstack/_internal/server/services/projects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ async def list_user_accessible_projects(
7575
) -> List[Project]:
7676
"""
7777
Returns all projects accessible to the user:
78-
- Projects where user is a member (public or private)
79-
- Public projects where user is NOT a member
78+
- For global admins: ALL projects in the system
79+
- For regular users: Projects where user is a member + public projects where user is NOT a member
8080
"""
8181
if user.global_role == GlobalRole.ADMIN:
8282
projects = await list_project_models(session=session)

0 commit comments

Comments
 (0)