mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move iAdminGet to Config::getAdminRole
This commit is contained in:
@@ -36,7 +36,7 @@ std::string RPCServerHandler::processRequest (std::string const& request, std::s
|
||||
}
|
||||
}
|
||||
|
||||
int role = iAdminGet (jvRequest, remoteAddress);
|
||||
Config::Role const role (getConfig ().getAdminRole (jvRequest, remoteAddress));
|
||||
|
||||
// Parse id now so errors from here on will have the id
|
||||
//
|
||||
@@ -71,7 +71,7 @@ std::string RPCServerHandler::processRequest (std::string const& request, std::s
|
||||
|
||||
// VFALCO TODO Shouldn't we handle this earlier?
|
||||
//
|
||||
if (role == RPCHandler::FORBID)
|
||||
if (role == Config::FORBID)
|
||||
{
|
||||
// VFALCO TODO Needs implementing
|
||||
// FIXME Needs implementing
|
||||
|
||||
Reference in New Issue
Block a user