Gate workspace features by plan capability - #7215
Merged
ComputelessComputer merged 1 commit intoSep 1, 2026
Merged
Conversation
✅ Deploy Preview for anarlog ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ComputelessComputer
force-pushed
the
feat/plan-capability-gates
branch
from
August 31, 2026 18:09
1a4bdda to
57ea16f
Compare
ComputelessComputer
force-pushed
the
feat/plan-capability-gates
branch
from
August 31, 2026 18:14
57ea16f to
b443353
Compare
Resolve Team and Enterprise access per workspace and enforce it across desktop and server flows.
ComputelessComputer
force-pushed
the
feat/plan-capability-gates
branch
from
September 1, 2026 02:07
b443353 to
a55994b
Compare
ComputelessComputer
marked this pull request as ready for review
September 1, 2026 02:08
stack merge was automatically disabled
September 1, 2026 02:34
Pull Request is not mergeable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Tests:
Note
High Risk
Changes authorization across many security-definer RPCs, sharing flows, and SSO/SCIM enforcement; misconfiguration could block paid customers or leave features exposed.
Overview
Introduces workspace-scoped plan capabilities resolved from the workspace’s own Stripe entitlements (
hyprnote_team/hyprnote_enterprise), so personal Pro no longer unlocks another workspace’s paid controls.The backend adds
get_workspace_accessand capability helpers, then enforces named capabilities on management RPCs (members, policies, logo, subdomain, usage, SSO/SCIM/retention) and on shared-note actions viarequire_workspace_or_pro_capabilityfor shared workspaces.The desktop app loads access through
getWorkspaceAccessand uses it in Team settings to show or hide admin UI (including Enterprise-only policy fields) and in enterprise capture sync to poll only workspaces withenterprise.capture.Reviewed by Cursor Bugbot for commit a55994b. Bugbot is set up for automated code reviews on this repo. Configure here.