feat(ri-exchange): symmetric session-auth approve path (closes #300)#590
feat(ri-exchange): symmetric session-auth approve path (closes #300)#590cristim wants to merge 1 commit into
Conversation
Mirror the three-mode dispatch introduced for purchases (#286): 1. Session with approve-any/approve-own on ResourcePurchases -> RBAC approve, stamping approved_by for audit trail. 2. Legacy email token -> unchanged behaviour. 3. No session and no token -> 401 via requireSession. Migration 000053 adds nullable approved_by and created_by_user_id to ri_exchange_history. The Approve button appears in the RI Exchange history panel for rows the current user is authorised to approve.
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (20)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Mirrors the in-dashboard approve pattern from #286 onto the RI Exchange flow.
Closes #300.
Changes