diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-12-11 18:15:06 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-12-11 19:30:02 -0500 |
commit | 2d6e8e7951cdcb25b8dc9eb9edab03bcb03fe6cc (patch) | |
tree | 15e3402428e27b4969896b38023c6a98c1f4a096 /src/mongo/s/request.cpp | |
parent | c99e8acd6edc9d5c60324227c6a1a6e9476a45e0 (diff) | |
download | mongo-2d6e8e7951cdcb25b8dc9eb9edab03bcb03fe6cc.tar.gz |
SERVER-7572 Remove AuthenticationInfo::isAuthorizedForLevel
Diffstat (limited to 'src/mongo/s/request.cpp')
-rw-r--r-- | src/mongo/s/request.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mongo/s/request.cpp b/src/mongo/s/request.cpp index 64051bc04b3..c145006bc03 100644 --- a/src/mongo/s/request.cpp +++ b/src/mongo/s/request.cpp @@ -50,20 +50,6 @@ namespace mongo { } } - void Request::checkAuth( Auth::Level levelNeeded , const char * need ) const { - char cl[256]; - - const char * use = cl; - if ( need ) - use = need; - else - nsToDatabase(getns(), cl); - - uassert( 15845 , - str::stream() << "unauthorized for db:" << use << " level: " << levelNeeded , - _clientInfo->getAuthenticationInfo()->isAuthorizedForLevel(use,levelNeeded) ); - } - void Request::init() { if ( _didInit ) return; @@ -145,11 +131,9 @@ namespace mongo { } } else if ( op == dbGetMore ) { - checkAuth( Auth::READ ); // this is important so someone can't steal a cursor s->getMore( *this ); } else { - checkAuth( Auth::WRITE ); s->writeOp( op, *this ); } |