Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(users): fallback to fresh lineage context if cached role_id no longer matches (#8593)
Sandeep Kumaraaa4fca58d8e
diff --git a/crates/router/src/types/domain/user/decision_manager.rs b/crates/router/src/types/domain/user/decision_manager.rsindex 7bc11383da..15d5463ecf 100644--- a/crates/router/src/types/domain/user/decision_manager.rs+++ b/crates/router/src/types/domain/user/decision_manager.rs@@ -158,7 +158,11 @@ impl JWTFlow {UserRoleVersion::V2,).await- .is_ok();+ .inspect_err(|e| {+ logger::error!("Failed to validate V2 role: {e:?}");+ })+ .map(|role| role.role_id == ctx.role_id)+ .unwrap_or_default();if user_role_match_v2 {ctx@@ -174,7 +178,11 @@ impl JWTFlow {UserRoleVersion::V1,).await- .is_ok();+ .inspect_err(|e| {+ logger::error!("Failed to validate V1 role: {e:?}");+ })+ .map(|role| role.role_id == ctx.role_id)+ .unwrap_or_default();if user_role_match_v1 {ctx