-
Notifications
You must be signed in to change notification settings - Fork 207
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Steps to reproduce
- Create a user that is not a global admin.
- Log in as that user.
- Create a project owned by that user.
- Navigate to the projects list page.
- Select that project.
Actual behaviour
The "Delete" button is inactive.
Expected behaviour
The "Delete" button is active and can be used to delete the project.
dstack version
0.20.0
Server logs
Additional information
The UI attempts to perform client-side permission checks, but cannot do so correctly because /api/projects/list returns an empty member list for each project.
Possible solutions:
- Update
/api/projects/listto return project members. However, this will increase the response size, which is already large on some installations, such as Sky. May require adding pagination. - Drop client-side permission checks on the projects list page. Make the "Delete" button unconditionally active and rely on server-side permission checks.
- Hide the "Delete" button for all users except global admins.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working