summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbeval.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-06-04 17:11:01 -0400
committerSpencer T Brody <spencer@10gen.com>2013-06-04 17:11:01 -0400
commitf44d4c9151c49ba81d232ceb9eb521f6f2cf33bc (patch)
tree5cd9489c29f3aa6b756f0ec8e4235d6853ee9d99 /src/mongo/db/dbeval.cpp
parent34691ade8ee1e78939842225ab3691ba5ce62521 (diff)
downloadmongo-f44d4c9151c49ba81d232ceb9eb521f6f2cf33bc.tar.gz
Revert "Move static methods from AuthorizationSession into AuthorizationManager - INCOMPLETE need to remove from AuthSession"
This reverts commit 2ccf39cab1d62c4b2a68513e9f906074d156a531.
Diffstat (limited to 'src/mongo/db/dbeval.cpp')
-rw-r--r--src/mongo/db/dbeval.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/dbeval.cpp b/src/mongo/db/dbeval.cpp
index 58bfc1f2510..bb358fa7534 100644
--- a/src/mongo/db/dbeval.cpp
+++ b/src/mongo/db/dbeval.cpp
@@ -21,8 +21,6 @@
#include <time.h>
#include "mongo/bson/util/builder.h"
-#include "mongo/db/auth/authorization_manager.h"
-#include "mongo/db/auth/authorization_manager_global.h"
#include "mongo/db/auth/authorization_session.h"
#include "mongo/db/auth/privilege_set.h"
#include "mongo/db/cmdline.h"
@@ -125,7 +123,7 @@ namespace mongo {
std::vector<Privilege>* out) {
// $eval can do pretty much anything, so require all privileges.
out->push_back(Privilege(PrivilegeSet::WILDCARD_RESOURCE,
- getGlobalAuthorizationManager()->getAllUserActions()));
+ AuthorizationSession::getAllUserActions()));
}
CmdEval() : Command("eval", false, "$eval") { }
bool run(const string& dbname , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool fromRepl) {