summaryrefslogtreecommitdiff
path: root/db/curop.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-10-09 14:59:44 -0400
committerDwight <dmerriman@gmail.com>2009-10-09 14:59:44 -0400
commitff54f162713ba46f330ea22eef395f339195c0b1 (patch)
tree3ca0d5b93b10f4e5cdd5c4cd929eac8dee5d3b80 /db/curop.h
parent12bf0ac29b041780b31a9c2b66ad755b3e02201b (diff)
downloadmongo-ff54f162713ba46f330ea22eef395f339195c0b1.tar.gz
add Connection class
beginnings that is
Diffstat (limited to 'db/curop.h')
-rw-r--r--db/curop.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/curop.h b/db/curop.h
index 2ba4f90d057..dc878b4e5ec 100644
--- a/db/curop.h
+++ b/db/curop.h
@@ -4,6 +4,7 @@
#include "namespace.h"
#include "security.h"
+#include "connection.h"
namespace mongo {
@@ -37,8 +38,8 @@ namespace mongo {
}
BSONObj info() {
- AuthenticationInfo *ai = authInfo.get();
- if( ai == 0 || !ai->isAuthorized("admin") ) {
+ AuthenticationInfo *ai = currentConnection.get()->ai;
+ if( !ai->isAuthorized("admin") ) {
BSONObjBuilder b;
b.append("err", "unauthorized");
return b.obj();