summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/user_management_commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/user_management_commands.cpp')
-rw-r--r--src/mongo/db/commands/user_management_commands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/user_management_commands.cpp b/src/mongo/db/commands/user_management_commands.cpp
index f2c4f3ad6cf..e0f205b18fd 100644
--- a/src/mongo/db/commands/user_management_commands.cpp
+++ b/src/mongo/db/commands/user_management_commands.cpp
@@ -1696,7 +1696,7 @@ public:
mutablebson::Element privilegesElement = updateObj.makeElementArray("privileges");
status = setElement.pushBack(privilegesElement);
uassertStatusOK(status);
- status = authzManager->getBSONForPrivileges(privileges, privilegesElement);
+ status = Privilege::getBSONForPrivileges(privileges, privilegesElement);
uassertStatusOK(status);
BSONObjBuilder updateBSONBuilder;
@@ -1798,7 +1798,7 @@ public:
mutablebson::Element privilegesElement = updateObj.makeElementArray("privileges");
status = setElement.pushBack(privilegesElement);
uassertStatusOK(status);
- status = authzManager->getBSONForPrivileges(privileges, privilegesElement);
+ status = Privilege::getBSONForPrivileges(privileges, privilegesElement);
uassertStatusOK(status);
audit::logRevokePrivilegesFromRole(Client::getCurrent(), roleName, privilegesToRemove);