Move iAdminGet to Config::getAdminRole

This commit is contained in:
Vinnie Falco
2013-08-31 20:46:27 -07:00
parent e22c1c3495
commit bbfbdabe76
8 changed files with 89 additions and 146 deletions

View File

@@ -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