From dc213a4fab213924ebce8163db7ef5f530d621a1 Mon Sep 17 00:00:00 2001 From: Mark Travis Date: Fri, 14 Jan 2022 15:13:09 -0800 Subject: [PATCH] Make gateway_balances admin-only in reporting mode --- src/ripple/rpc/impl/Handler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ripple/rpc/impl/Handler.cpp b/src/ripple/rpc/impl/Handler.cpp index 7c193f5546..3613bf723e 100644 --- a/src/ripple/rpc/impl/Handler.cpp +++ b/src/ripple/rpc/impl/Handler.cpp @@ -82,7 +82,11 @@ Handler const handlerArray[]{ Role::USER, NO_CONDITION}, {"download_shard", byRef(&doDownloadShard), Role::ADMIN, NO_CONDITION}, +#ifdef RIPPLED_REPORTING + {"gateway_balances", byRef(&doGatewayBalances), Role::ADMIN, NO_CONDITION}, +#else {"gateway_balances", byRef(&doGatewayBalances), Role::USER, NO_CONDITION}, +#endif {"get_counts", byRef(&doGetCounts), Role::ADMIN, NO_CONDITION}, {"feature", byRef(&doFeature), Role::ADMIN, NO_CONDITION}, {"fee", byRef(&doFee), Role::USER, NEEDS_CURRENT_LEDGER},