Don't show our validation key in non-admin server_info.

This commit is contained in:
JoelKatz
2013-01-15 17:03:00 -08:00
parent 940cc9059c
commit d398c5bb02
3 changed files with 10 additions and 5 deletions

View File

@@ -1305,7 +1305,7 @@ Json::Value RPCHandler::doServerInfo(Json::Value)
{
Json::Value ret(Json::objectValue);
ret["info"] = theApp->getOPs().getServerInfo();
ret["info"] = theApp->getOPs().getServerInfo(mRole == ADMIN);
return ret;
}