fix: added workspace member check in allow permission for creator#8778
fix: added workspace member check in allow permission for creator#8778NarayanBavisetti wants to merge 1 commit intopreviewfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAn early authorization check is added to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip You can validate your CodeRabbit configuration file in your editor.If your editor has YAML language server, you can enable auto-completion and validation by adding |
There was a problem hiding this comment.
Pull request overview
This PR updates the API permission decorator to ensure “creator” shortcut access is only granted when the requesting user is an active member of the workspace referenced by the request.
Changes:
- Added an active
WorkspaceMemberexistence check in thecreator=Truepermission path. - Returns a 403 response when the requester is not an active workspace member.
Description
this pull request adds a check to verify whether the creator is part and active in the workspace or not.
Type of Change
Summary by CodeRabbit