diff options
Diffstat (limited to 'src/mongo/db/dbeval.cpp')
-rw-r--r-- | src/mongo/db/dbeval.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/dbeval.cpp b/src/mongo/db/dbeval.cpp index b02ded46776..af190d082c3 100644 --- a/src/mongo/db/dbeval.cpp +++ b/src/mongo/db/dbeval.cpp @@ -137,8 +137,7 @@ namespace mongo { const BSONObj& cmdObj, std::vector<Privilege>* out) { - out->push_back(Privilege(ResourcePattern::forAnyResource(), - getGlobalAuthorizationManager()->getAllUserActions())); + RoleGraph::generateUniversalPrivileges(out); } CmdEval() : Command("eval", false, "$eval") { } bool run(const string& dbname , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool fromRepl) { |