feat: gate project-specific roles on supportsProjectSpecificRoles plag#3078
Conversation
…n flag Update SDK to @appwrite.io/console@82069e6 which exposes the new flag. Replace supportsOrganizationRoles with supportsProjectSpecificRoles in createMember, edit, and members page — org roles and project-specific roles are now independently gated by their own plan flags.
Greptile SummaryThis PR decouples organization roles from project-specific roles by replacing the removed
Confidence Score: 5/5The change is safe to merge — the flag removal and flag-field swap are straightforward, and the previously missing edit-button gate for org-roles-only plans is now corrected. The logic is simple and well-scoped: the old feature flag is replaced by a plan field, the two role types are properly separated, and the one known gap (Edit button hidden for org-roles-only plans) has been addressed. No auth boundaries are changed and all error paths are handled. No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "chore: remove unused granularProjectAcce..." | Re-trigger Greptile |
…ProjectSpecificRoles supportsProjectSpecificRoles only controls the project-specific toggle inside the edit modal. The Edit role button should show for any plan that supports org-level roles — use a separate supportsOrgRoles derived from supportsOrganizationRoles for that. Also add !! coercion for consistency.
… roles Gate solely on supportsProjectSpecificRoles plan flag — no feature flag needed. Also always fetch orgProjects in page load since it is no longer conditionally needed.
…ojectRoles is true Plans with supportsProjectSpecificRoles=true but supportsOrganizationRoles=false would show project-role badges in the table but have no way to edit them.
Update SDK to @appwrite.io/console@82069e6 which exposes the new flag. Replace supportsOrganizationRoles with supportsProjectSpecificRoles in createMember, edit, and members page — org roles and project-specific roles are now independently gated by their own plan flags.
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.)