diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-07-29 17:25:50 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-08-01 14:08:46 -0400 |
commit | 2acb6f2bdaf6a0f0ffa3ed64cf3b24003fbbceee (patch) | |
tree | b02ce93d21db0e55381bb81fc43d254e82916e5b /src/mongo/db/auth/authorization_session.cpp | |
parent | aa62052a194c49ae449a0d8c2d2ab17e468a3e39 (diff) | |
download | mongo-2acb6f2bdaf6a0f0ffa3ed64cf3b24003fbbceee.tar.gz |
SERVER-9518 Remove UserName argument from grantInternalAuthorization
Diffstat (limited to 'src/mongo/db/auth/authorization_session.cpp')
-rw-r--r-- | src/mongo/db/auth/authorization_session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/auth/authorization_session.cpp b/src/mongo/db/auth/authorization_session.cpp index 7ab48e66e94..a19678b68c6 100644 --- a/src/mongo/db/auth/authorization_session.cpp +++ b/src/mongo/db/auth/authorization_session.cpp @@ -141,8 +141,8 @@ namespace { return Status::OK(); } - void AuthorizationSession::grantInternalAuthorization(const UserName& userName) { - Principal* principal = new Principal(userName); + void AuthorizationSession::grantInternalAuthorization() { + Principal* principal = new Principal(internalSecurity.user->getName()); ActionSet actions; actions.addAllActions(); |