summaryrefslogtreecommitdiff
path: root/src/mongo/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/rpc')
-rw-r--r--src/mongo/rpc/op_msg_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/rpc/op_msg_test.cpp b/src/mongo/rpc/op_msg_test.cpp
index df6aa2e04a3..d5287b18144 100644
--- a/src/mongo/rpc/op_msg_test.cpp
+++ b/src/mongo/rpc/op_msg_test.cpp
@@ -61,7 +61,7 @@ public:
* Synthesize a user with the useTenant privilege and add them to the authorization session.
*/
static void grantUseTenant(Client& client) {
- User user(UserRequest(UserName("useTenant", "admin"), boost::none));
+ User user(UserName("useTenant", "admin"));
user.setPrivileges(
{Privilege(ResourcePattern::forClusterResource(), ActionType::useTenant)});
auto* as = dynamic_cast<AuthorizationSessionImpl*>(AuthorizationSession::get(client));