SERVER-258 current op should probably be read only authorized afterall

This commit is contained in:
Aaron
2010-01-26 17:35:30 -08:00
parent 6ba9f4c9bc
commit 2fc5cd666f

View File

@@ -95,7 +95,7 @@ namespace mongo {
BSONObjBuilder b;
AuthenticationInfo *ai = cc().ai;
if( !ai->isAuthorized("admin") ) {
if( !ai->isReadOnlyAuthorized("admin") ) {
BSONObjBuilder b;
b.append("err", "unauthorized");
}