Skip to content

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

fix(auth): require organization account read for account listing (#15036)

Ayush Ananda76afc2e4b76
diff --git a/crates/router/src/routes/admin.rs b/crates/router/src/routes/admin.rs
index c1e1a330c6..441559e35d 100644
--- a/crates/router/src/routes/admin.rs
+++ b/crates/router/src/routes/admin.rs
@@ -426,7 +426,7 @@ pub async fn merchant_account_list(
organization_id: None,
},
&auth::JWTAuthMerchantFromHeader {
- required_permission: Permission::MerchantAccountRead,
+ required_permission: Permission::OrganizationAccountRead,
allow_connected: true,
allow_platform: true,
},