summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/authz_session_external_state.h
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2013-06-01 03:40:00 -0400
committerSpencer T Brody <spencer@10gen.com>2013-06-01 03:40:00 -0400
commitf87c096e7d78c30f1e7c660fe4ad718d9b821217 (patch)
tree38a1489661827fede6b525ff43cff158a9f1e174 /src/mongo/db/auth/authz_session_external_state.h
parent661a68e0bd5d9679afa6a1fc9f371bb17a15129e (diff)
downloadmongo-f87c096e7d78c30f1e7c660fe4ad718d9b821217.tar.gz
Revert "Add pointer to AuthorizationManager to AuthzSessionExternalState"
This reverts commit 661a68e0bd5d9679afa6a1fc9f371bb17a15129e.
Diffstat (limited to 'src/mongo/db/auth/authz_session_external_state.h')
-rw-r--r--src/mongo/db/auth/authz_session_external_state.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/auth/authz_session_external_state.h b/src/mongo/db/auth/authz_session_external_state.h
index bc6768eb8a6..d3e7f10b3af 100644
--- a/src/mongo/db/auth/authz_session_external_state.h
+++ b/src/mongo/db/auth/authz_session_external_state.h
@@ -21,7 +21,6 @@
#include "mongo/base/disallow_copying.h"
#include "mongo/base/status.h"
#include "mongo/client/dbclientinterface.h"
-#include "mongo/db/auth/authorization_manager.h"
#include "mongo/db/auth/user_name.h"
namespace mongo {
@@ -70,8 +69,7 @@ namespace mongo {
virtual void onLogoutDatabase(const std::string& dbname) = 0;
protected:
- // This class should never be instantiated directly.
- AuthzSessionExternalState(AuthorizationManager* authzManager);
+ AuthzSessionExternalState(); // This class should never be instantiated directly.
// Queries the userNamespace with the given query and returns the privilegeDocument found
// in *result. Returns true if it finds a document matching the query, or false if not.
@@ -83,8 +81,6 @@ namespace mongo {
// Returns true if there exists at least one privilege document in the given database.
// TODO: remove this in favor of using the AuthzManagerExternalState
bool _hasPrivilegeDocument(const std::string& dbname) const;
-
- AuthorizationManager* _authzManager;
};
} // namespace mongo