diff options
Diffstat (limited to 'src/mongo/db/security.cpp')
-rw-r--r-- | src/mongo/db/security.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/security.cpp b/src/mongo/db/security.cpp index 0913bff6186..25a3d877a25 100644 --- a/src/mongo/db/security.cpp +++ b/src/mongo/db/security.cpp @@ -73,6 +73,10 @@ namespace mongo { _checkLocalHostSpecialAdmin(); } + bool AuthenticationInfo::isSpecialLocalhostAdmin() const { + return _isLocalHostAndLocalHostIsAuthorizedForAll; + } + void AuthenticationInfo::_checkLocalHostSpecialAdmin() { if ( ! _isLocalHost ) return; |