René's URL Explorer Experiment


Title: fix(workspaces): explain why org admins can't be removed from a workspace by icecrasher321 · Pull Request #6838 · simstudioai/sim · GitHub

Open Graph Title: fix(workspaces): explain why org admins can't be removed from a workspace by icecrasher321 · Pull Request #6838 · simstudioai/sim

X Title: fix(workspaces): explain why org admins can't be removed from a workspace by icecrasher321 · Pull Request #6838 · simstudioai/sim

Description: Summary Removing an org admin from a workspace failed with User not found in workspace — they hold workspace admin through their org role, not a permissions row, so there was never a row to find DELETE /api/workspaces/members/[id] now returns a 400 naming the actual reason: organization admins are automatically workspace admins, change their organization role to remove them The guard fires whether or not they also hold an explicit row. That case was quietly worse than the 404: it deleted a grant the derived one immediately replaced, and because the seat reconciliation counts permissions rows only, removing an org admin from their last org workspace could drop their org membership and seat while they stayed a workspace admin Moved the admin/self authorization check above the target lookups so the new standing-specific reply can't be used to probe org membership for an arbitrary userId — same oracle concern the permissions PATCH route documents Teammates rows no longer offer a Remove the server will refuse: new workspaceMemberRemovalLockReason mirrors the two server guards and renders the item disabled with the reason as a tooltip Added isOrgAdmin to the workspace member payload. roleSource ranks owner above org-admin, so it can't answer for a workspace owner who is also an org admin — the one case the client previously couldn't see Type of Change Bug fix Testing Tested manually. tsc --noEmit clean, bun run lint, check:audits (29 audits) and check:block-registry pass, lib/workspaces/permissions/utils.test.ts 64/64 — updated the exact-shape assertion and added a case pinning that an owner who is also an org admin keeps roleSource: 'owner' and still reports isOrgAdmin: true. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Removing an org admin from a workspace failed with User not found in workspace — they hold workspace admin through their org role, not a permissions row, so there was never a row to find D...

X Description: Summary Removing an org admin from a workspace failed with User not found in workspace — they hold workspace admin through their org role, not a permissions row, so there was never a row to find D...

Opengraph URL: https://github.com/simstudioai/sim/pull/6838

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c63313f1-68df-8756-0079-6152ed1e5a5e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9968:267719:E290CF:1367224:6AFB5E00
html-safe-nonce961666aaa1722c350432649c25eadbc6b8bbef7ead471cab54abd6fc1234a6c0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTY4OjI2NzcxOTpFMjkwQ0Y6MTM2NzIyNDo2QUZCNUUwMCIsInZpc2l0b3JfaWQiOiI0MDcxNjQwMDQwNzYzNzc2NTEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace2d0a3ee4ee9b1224b31996f8ec863a6523183a690df0cc18491dd097ae01959
hovercard-subject-tagpull_request:4310154858
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6838/files
twitter:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
og:image:altSummary Removing an org admin from a workspace failed with User not found in workspace — they hold workspace admin through their org role, not a permissions row, so there was never a row to find D...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6838/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6838%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6838%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6838/files
Reloadhttps://github.com/simstudioai/sim/pull/6838/files
Reloadhttps://github.com/simstudioai/sim/pull/6838/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
icecrasher321https://github.com/icecrasher321
staginghttps://github.com/simstudioai/sim/tree/staging
doualahttps://github.com/simstudioai/sim/tree/douala
Conversation 10 https://github.com/simstudioai/sim/pull/6838
Commits 2 https://github.com/simstudioai/sim/pull/6838/commits
Checks 30 https://github.com/simstudioai/sim/pull/6838/checks
Files changed https://github.com/simstudioai/sim/pull/6838/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6838/files
fix(workspaces): explain why org admins can't be removed from a workspace https://github.com/simstudioai/sim/pull/6838/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/6838/files
577ab22 fix(workspaces): explain why org admins can't be removed from a works… Aug 19, 2026 https://github.com/simstudioai/sim/pull/6838/commits/577ab220c70bdd77af0338463fbbab48a12a8022
19bda02 fix(workspaces): stop offering leave to org admins and surface refusals Aug 19, 2026 https://github.com/simstudioai/sim/pull/6838/commits/19bda02124474002dd91aaba84c1d1fd2d8446de
Clear filters https://github.com/simstudioai/sim/pull/6838/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6838/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6838/files
route.ts https://github.com/simstudioai/sim/pull/6838/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
row-actions-menu.test.tsx https://github.com/simstudioai/sim/pull/6838/files#diff-34ece10dc705f0312f4e27a4679fa5ad303b8ffe5c5d82bdf9cc858d35b69390
row-actions-menu.tsx https://github.com/simstudioai/sim/pull/6838/files#diff-9fb9cf637d408030d5283594aafe47d7889979f598cd68e3657e3415fd6f3de0
teammates.tsx https://github.com/simstudioai/sim/pull/6838/files#diff-6552de4cf6d80acc6c8dcc22e8fcfeb9c1c503a332b25cc33f6310c8aaced1b5
workspace-header.tsx https://github.com/simstudioai/sim/pull/6838/files#diff-5cd2ce39c5a80d2b31ad921d4d2200a91b7272be46f93fa8e6b74058b9edfb6a
index.ts https://github.com/simstudioai/sim/pull/6838/files#diff-69d3f62b404b8cc409353ac1cf28000baf78f73e8a44302fa99011e1bc10582d
role-lock.tsx https://github.com/simstudioai/sim/pull/6838/files#diff-1d71365a0b13edc7c66fee842d85983b3b85b38881f3652e6c9f8d623747e6a7
workspaces.ts https://github.com/simstudioai/sim/pull/6838/files#diff-cc809bb2a9762a5e34aa3dead6e253dc3a338a8015828af9cbc7a24bd40c8e1d
list.ts https://github.com/simstudioai/sim/pull/6838/files#diff-027ca4d5cd768b6aad891bad61b00eafd1a6a29b4d9c62774f7ce25c27e8fd8c
utils.test.ts https://github.com/simstudioai/sim/pull/6838/files#diff-45d86b72a59e0d48f3a927159660215d3f1c1889b96aefc3159dd255c68c505a
utils.ts https://github.com/simstudioai/sim/pull/6838/files#diff-07191b757d3b2d0d7bb1010340242588896ee4ade5df67d9e36b8e07522da1a8
utils.test.ts https://github.com/simstudioai/sim/pull/6838/files#diff-5453ce77853e89caab5cc7caf7c1989f776fb311ec9388f7da2211d27553ade0
utils.ts https://github.com/simstudioai/sim/pull/6838/files#diff-fa76b3df77f49bc098b6ea6651afc02ec839b7472c00b52633e155a0189b3bb4
apps/sim/app/api/workspaces/members/[id]/route.tshttps://github.com/simstudioai/sim/pull/6838/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
View file https://github.com/simstudioai/sim/blob/19bda02124474002dd91aaba84c1d1fd2d8446de/apps/sim/app/api/workspaces/members/%5Bid%5D/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6838/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6838/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
https://github.com/simstudioai/sim/pull/6838/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
https://github.com/simstudioai/sim/pull/6838/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
Please reload this pagehttps://github.com/simstudioai/sim/pull/6838/files
https://github.com/simstudioai/sim/pull/6838/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
https://github.com/simstudioai/sim/pull/6838/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
https://github.com/simstudioai/sim/pull/6838/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
https://github.com/simstudioai/sim/pull/6838/files#diff-35446d1297e3e67c314084b1fc8f61712c230f6949080950324b042f60bcb0d6
...pp/workspace/[workspaceId]/settings/components/row-actions-menu/row-actions-menu.test.tsxhttps://github.com/simstudioai/sim/pull/6838/files#diff-34ece10dc705f0312f4e27a4679fa5ad303b8ffe5c5d82bdf9cc858d35b69390
View file https://github.com/simstudioai/sim/blob/19bda02124474002dd91aaba84c1d1fd2d8446de/apps/sim/app/workspace/%5BworkspaceId%5D/settings/components/row-actions-menu/row-actions-menu.test.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6838/{{ revealButtonHref }}
...sim/app/workspace/[workspaceId]/settings/components/row-actions-menu/row-actions-menu.tsxhttps://github.com/simstudioai/sim/pull/6838/files#diff-9fb9cf637d408030d5283594aafe47d7889979f598cd68e3657e3415fd6f3de0
View file https://github.com/simstudioai/sim/blob/19bda02124474002dd91aaba84c1d1fd2d8446de/apps/sim/app/workspace/%5BworkspaceId%5D/settings/components/row-actions-menu/row-actions-menu.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6838/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6838/files#diff-9fb9cf637d408030d5283594aafe47d7889979f598cd68e3657e3415fd6f3de0
https://github.com/simstudioai/sim/pull/6838/files#diff-9fb9cf637d408030d5283594aafe47d7889979f598cd68e3657e3415fd6f3de0
https://github.com/simstudioai/sim/pull/6838/files#diff-9fb9cf637d408030d5283594aafe47d7889979f598cd68e3657e3415fd6f3de0
Please reload this pagehttps://github.com/simstudioai/sim/pull/6838/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6838/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.