-
Notifications
You must be signed in to change notification settings - Fork 10.8k
fix(organizations): allow org owners and admins to edit their own use… #24380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(organizations): allow org owners and admins to edit their own use… #24380
Conversation
…rnames - Fix UserListTable to show edit option for org owners/admins on themselves - Fix MemberList to show edit option for org owners/admins on themselves - Resolves issue where org owners/admins couldn't see triple dot menu to edit their own usernames - Maintains existing security by only allowing edit for users with proper permissions Fixes calcom#24377
@antcybersec is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughUpdates adjust edit-permission logic so that edit actions are allowed when the row is not the current user, or when the current user is an Org Admin/Owner (enabling self-edit for admins/owners). Minor refactors include renaming local variables with leading underscores and adding braces around certain switch-case sections without altering behavior. No exported or public API signatures are changed. These modifications appear across member and user list components. Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (3)**/*.tsx📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
Files:
**/*.{ts,tsx,js,jsx}⚙️ CodeRabbit configuration file
Files:
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (4)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please attach before and after loom video, making it draft until then.
Allows org owners/admins to see the edit (ellipsis) menu on their own row by permitting self-edit when user is admin/owner. Changes limited to UserListTable.tsx and MemberList.tsx. Fixes #24377.