summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/refresh_sessions_command.cpp
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2022-05-10 17:54:01 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-24 05:17:25 +0000
commit4fab61e9c5006e9a4c06860dc9e49e1d422ee859 (patch)
treec383da8e16d40422c3dff8dea6a38c6e2935e256 /src/mongo/db/commands/refresh_sessions_command.cpp
parentd3dae653da44b8cb87ff2a9687c0468aa52b6b44 (diff)
downloadmongo-4fab61e9c5006e9a4c06860dc9e49e1d422ee859.tar.gz
SERVER-66360 Remove multi-user authentication support
Diffstat (limited to 'src/mongo/db/commands/refresh_sessions_command.cpp')
-rw-r--r--src/mongo/db/commands/refresh_sessions_command.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/commands/refresh_sessions_command.cpp b/src/mongo/db/commands/refresh_sessions_command.cpp
index a15eb760d08..209fef853c3 100644
--- a/src/mongo/db/commands/refresh_sessions_command.cpp
+++ b/src/mongo/db/commands/refresh_sessions_command.cpp
@@ -72,9 +72,7 @@ public:
void doCheckAuthorization(OperationContext* opCtx) const final {
// It is always ok to run this command, as long as you are authenticated
// as some user, if auth is enabled.
- uassert(ErrorCodes::Unauthorized,
- "Not authorized to run refreshSessions command",
- AuthorizationSession::get(opCtx->getClient())->getSingleUser());
+ // requiresAuth() => true covers this for us.
}
Reply typedRun(OperationContext* opCtx) final {