Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: hide the favorite button for workspaces you don't own - #28000

Merged
aslilac merged 3 commits into
mainfrom
lilac/hide-favorite-button-for-non-owners
Aug 10, 2026
Merged

fix: hide the favorite button for workspaces you don't own#28000
aslilac merged 3 commits into
mainfrom
lilac/hide-favorite-button-for-non-owners

Conversation

@aslilac

@aslilac aslilac commented Aug 10, 2026

Copy link
Copy Markdown
Member

Favorite status lives on the workspace row rather than in a per-user relation, so the API only lets a workspace's owner toggle it. The button was rendered for everyone, so viewing someone else's workspace offered a star that always looked un-favorited and failed with a 403, surfaced through the "Error building workspace" dialog.

Hides the button unless you own the workspace, with stories covering both cases.


Made with Coder Agents on behalf of @aslilac.

…ton for non-owners

Favorite is a column on the workspace row rather than a per-user
relation, so the API rejects favorite and unfavorite requests from
anyone other than the workspace owner. The button was rendered
unconditionally, so viewing someone else's workspace offered a star
that always looked un-favorited and failed with a 403 surfaced through
the "Error building workspace" dialog.
@aslilac
aslilac merged commit ddb2799 into main Aug 10, 2026
26 checks passed
@aslilac
aslilac deleted the lilac/hide-favorite-button-for-non-owners branch August 10, 2026 20:16
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants