fix: getting error when userid passed into booking filters#23344
fix: getting error when userid passed into booking filters#23344anikdhabal merged 2 commits intocalcom:mainfrom
Conversation
|
@anikdhabal is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe handler introduces a local isCurrentUser flag, set when exactly one userId is provided and it matches the current user’s id. The permission check is adjusted: previously it threw if any filtered userId fell outside the current user’s org/team. Now it throws only when there are invalid userIds and the filter is not exactly the current user. Single-user self filters are allowed. No public APIs or exported signatures are changed. Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.ts📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
Files:
🧠 Learnings (1)📚 Learning: 2025-08-17T22:00:16.329ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (08/25/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add ready-for-e2e label" took an action on this PR • (08/25/25)1 label was added to this PR based on Keith Williams's automation. |
E2E results are ready! |
What does this PR do?
Fixes:-
This is okay for org or team user, who are not owner/admin. But it is broken when using segment and user is not a part of any team
