feat(project): hide project sharing actions from non-admins#597
Conversation
|
Thank you for contributing to Dembrane ECHO! Before we consider your Pull Request, we ask that you sign our Contributor License Agreement (CLA). This is only required for your first Pull Request. Please review the CLA, and sign it by adding your GitHub username to the contributors.yml file. Thanks! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughRestricts project sharing and member invitation UI to workspace admins. ChangesAdmin-only project sharing UI access control
🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What this changes
ProjectSharingStrip— ProjectSharingStrip.tsxInviteMemberCard("Share with someone" or "Make private to invite specific members") inProjectUsageAndSharing— ProjectUsageAndSharing.tsxisWorkspaceVisible) — ProjectUsageAndSharing.tsxConfidence
Confidence: high. Spacing, imports, and component structure were carefully edited using tab-indentation matching the existing files. The user-visible change directly aligns with workspace roles (restricting to
isAdminRole), which only owners and admins possess. No changes were made to backend APIs.Summary by CodeRabbit