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(user_roles): Populate `profile_id` from token in update user role API (#5907)
Mani Chandraa258602ff161
diff --git a/crates/router/src/core/user_role.rs b/crates/router/src/core/user_role.rsindex 868d2e65a2..d42f71695a 100644--- a/crates/router/src/core/user_role.rs+++ b/crates/router/src/core/user_role.rs@@ -119,7 +119,7 @@ pub async fn update_user_role(user_to_be_updated.get_user_id(),&user_from_token.org_id,&user_from_token.merchant_id,- None,+ user_from_token.profile_id.as_ref(),UserRoleVersion::V2,).await@@ -165,7 +165,7 @@ pub async fn update_user_role(user_to_be_updated.get_user_id(),&user_from_token.org_id,&user_from_token.merchant_id,- None,+ user_from_token.profile_id.as_ref(),UserRoleUpdate::UpdateRole {role_id: req.role_id.clone(),modified_by: user_from_token.user_id.clone(),@@ -184,7 +184,7 @@ pub async fn update_user_role(user_to_be_updated.get_user_id(),&user_from_token.org_id,&user_from_token.merchant_id,- None,+ user_from_token.profile_id.as_ref(),UserRoleVersion::V1,).await@@ -230,7 +230,7 @@ pub async fn update_user_role(user_to_be_updated.get_user_id(),&user_from_token.org_id,&user_from_token.merchant_id,- None,+ user_from_token.profile_id.as_ref(),UserRoleUpdate::UpdateRole {role_id: req.role_id.clone(),modified_by: user_from_token.user_id,