summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands_public.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands_public.cpp')
-rw-r--r--src/mongo/s/commands_public.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/s/commands_public.cpp b/src/mongo/s/commands_public.cpp
index ed92792ba70..6b36c5b739b 100644
--- a/src/mongo/s/commands_public.cpp
+++ b/src/mongo/s/commands_public.cpp
@@ -24,6 +24,7 @@
#include "mongo/db/auth/action_set.h"
#include "mongo/db/auth/action_type.h"
#include "mongo/db/auth/authorization_manager.h"
+#include "mongo/db/auth/authorization_session.h"
#include "mongo/db/auth/privilege.h"
#include "mongo/db/commands/find_and_modify.h"
#include "mongo/db/commands/mr.h"
@@ -1708,7 +1709,7 @@ namespace mongo {
std::vector<Privilege>* out) {
// applyOps can do pretty much anything, so require all privileges.
out->push_back(Privilege(PrivilegeSet::WILDCARD_RESOURCE,
- AuthorizationManager::getAllUserActions()));
+ AuthorizationSession::getAllUserActions()));
}
virtual bool run(const string& dbName , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool) {
errmsg = "applyOps not allowed through mongos";
@@ -1741,7 +1742,7 @@ namespace mongo {
std::vector<Privilege>* out) {
// $eval can do pretty much anything, so require all privileges.
out->push_back(Privilege(PrivilegeSet::WILDCARD_RESOURCE,
- AuthorizationManager::getAllUserActions()));
+ AuthorizationSession::getAllUserActions()));
}
virtual bool run(const string& dbName,
BSONObj& cmdObj,