Skip to content

Gate workspace features by plan capability - #7215

Merged
ComputelessComputer merged 1 commit into
chore/team-plan-splitfrom
feat/plan-capability-gates
Sep 1, 2026
Merged

Gate workspace features by plan capability#7215
ComputelessComputer merged 1 commit into
chore/team-plan-splitfrom
feat/plan-capability-gates

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Summary:

  • resolve workspace-scoped Team and Enterprise capabilities from Stripe entitlements
  • enforce capabilities across privileged sharing and workspace RPCs
  • gate desktop settings and enterprise capture by capability

Tests:

  • pnpm exec supabase test db
  • pnpm -F desktop test
  • pnpm -r typecheck
  • pnpm fmt:check
  • pnpm -F desktop i18n:check
  • pnpm exec oxlint --quiet --format=github apps/desktop/src/

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_access and capability helpers, then enforces named capabilities on management RPCs (members, policies, logo, subdomain, usage, SSO/SCIM/retention) and on shared-note actions via require_workspace_or_pro_capability for shared workspaces.

The desktop app loads access through getWorkspaceAccess and 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 with enterprise.capture.

Reviewed by Cursor Bugbot for commit a55994b. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

Deploy Preview for anarlog ready!

Name Link
🔨 Latest commit a55994b
🔍 Latest deploy log https://app.netlify.com/projects/anarlog/deploys/6a963381c557f5000835e2a6
😎 Deploy Preview https://deploy-preview-7215--anarlog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ComputelessComputer
ComputelessComputer force-pushed the feat/plan-capability-gates branch from 1a4bdda to 57ea16f Compare August 31, 2026 18:09
@ComputelessComputer
ComputelessComputer force-pushed the feat/plan-capability-gates branch from 57ea16f to b443353 Compare August 31, 2026 18:14
Resolve Team and Enterprise access per workspace and enforce it across desktop and server flows.
@ComputelessComputer
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

@ComputelessComputer
ComputelessComputer merged commit 5b33c12 into main Sep 1, 2026
21 of 24 checks passed
@ComputelessComputer
ComputelessComputer deleted the feat/plan-capability-gates branch September 1, 2026 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant