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(roles): grant ReconSourcesView with ReconExceptionsManage (#11867)

Aman Kumarbdacb1b0181f
diff --git a/crates/router/src/services/authorization/permission_groups.rs b/crates/router/src/services/authorization/permission_groups.rs
index 8fc6d54ee9..295d505db9 100644
--- a/crates/router/src/services/authorization/permission_groups.rs
+++ b/crates/router/src/services/authorization/permission_groups.rs
@@ -119,6 +119,7 @@ impl PermissionGroupExt for PermissionGroup {
Self::ReconExceptionsManage => vec![
Self::ReconExceptionsManage,
Self::ReconExceptionsView,
+ Self::ReconSourcesView,
Self::ReconTransactionsView,
Self::ReconRulesView,
],
diff --git a/crates/router/src/services/authorization/roles/predefined_roles.rs b/crates/router/src/services/authorization/roles/predefined_roles.rs
index 57b9037a71..f1d4092516 100644
--- a/crates/router/src/services/authorization/roles/predefined_roles.rs
+++ b/crates/router/src/services/authorization/roles/predefined_roles.rs
@@ -504,6 +504,7 @@ pub static PREDEFINED_ROLES: LazyLock<HashMap<&'static str, RoleInfo>> = LazyLoc
PermissionGroup::ReconExceptionsManage,
PermissionGroup::ReconTransactionsView,
PermissionGroup::ReconTransactionsManage,
+ PermissionGroup::ReconSourcesView,
PermissionGroup::UsersView,
PermissionGroup::ReconRulesView,
],
@@ -596,6 +597,7 @@ pub static PREDEFINED_ROLES: LazyLock<HashMap<&'static str, RoleInfo>> = LazyLoc
PermissionGroup::ReconExceptionsManage,
PermissionGroup::ReconTransactionsView,
PermissionGroup::ReconTransactionsManage,
+ PermissionGroup::ReconSourcesView,
PermissionGroup::UsersView,
PermissionGroup::ReconRulesView,
],