fix: restrict granular project roles to Scale plan only#3070
fix: restrict granular project roles to Scale plan only#3070HarshMN2345 wants to merge 2 commits into
Conversation
The feature was incorrectly available to Pro plan orgs. Added \`\$currentPlan?.group === 'scale'\` guard alongside the existing supportsOrganizationRoles check in all three entry points: createMember, edit modal, and the members table action menu.
Greptile SummaryThis PR restricts the granular/project-specific role assignment UI to Scale plan by replacing the
Confidence Score: 5/5The change is small, consistent across all three entry points, and follows the existing pattern of gating UI on a boolean capability flag from the plan store. The main thing to double-check before merging is that the field name The diff is a narrow, uniform substitution of one boolean field for another with no logic changes and no new code paths. No data mutation, no API calls, and no auth logic is touched. The only meaningful risk is a silent field-name mismatch in the SDK, which would show up immediately in manual testing. Confirm the Important Files Changed
Reviews (2): Last reviewed commit: "feat: gate project-specific roles on sup..." | Re-trigger Greptile |
…n flag Replaces the hardcoded group === 'scale' check with the dedicated supportsProjectSpecificRoles boolean from the plan object, following the same pattern as supportsOrganizationRoles, supportsMockNumbers, etc.
The feature was incorrectly available to Pro plan orgs. Added `$currentPlan?.group === 'scale'` guard alongside the existing supportsOrganizationRoles check in all three entry points: createMember, edit modal, and the members table action menu.
What does this PR do?
(Provide a description of what this PR does.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)