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): update permission to create custom roles (#11461)
Kanika Bansal6d2e5af52bf4
diff --git a/crates/router/src/routes/user_role.rs b/crates/router/src/routes/user_role.rsindex 6db29a70dd..92c29c079b 100644--- a/crates/router/src/routes/user_role.rs+++ b/crates/router/src/routes/user_role.rs@@ -120,7 +120,7 @@ pub async fn create_role(json_payload.into_inner(),role_core::create_role,&auth::JWTAuth {- permission: Permission::MerchantUserWrite,+ permission: Permission::ProfileUserWrite,allow_connected: true,allow_platform: true,},@@ -142,7 +142,7 @@ pub async fn create_role_v2(json_payload.into_inner(),role_core::create_role_v2,&auth::JWTAuth {- permission: Permission::MerchantUserWrite,+ permission: Permission::ProfileUserWrite,allow_connected: true,allow_platform: true,},@@ -221,7 +221,7 @@ pub async fn update_role(json_payload.into_inner(),|state, user, req, _| role_core::update_role(state, user, req, &role_id),&auth::JWTAuth {- permission: Permission::MerchantUserWrite,+ permission: Permission::ProfileUserWrite,allow_connected: true,allow_platform: true,},