summaryrefslogtreecommitdiff
path: root/src/mongo/util/admin_access.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/admin_access.h')
-rw-r--r--src/mongo/util/admin_access.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/util/admin_access.h b/src/mongo/util/admin_access.h
index 115004427b0..6f9834147df 100644
--- a/src/mongo/util/admin_access.h
+++ b/src/mongo/util/admin_access.h
@@ -36,6 +36,8 @@
namespace mongo {
+ class OperationContext;
+
/*
* An AdminAccess is an interface class used to determine if certain users have
* privileges to a given resource.
@@ -48,14 +50,14 @@ namespace mongo {
/** @return if there are any priviledge users. This should not
* block for long and throw if can't get a lock if needed.
*/
- virtual bool haveAdminUsers() const = 0;
+ virtual bool haveAdminUsers(OperationContext* txn) const = 0;
};
class NoAdminAccess : public AdminAccess {
public:
virtual ~NoAdminAccess() { }
- virtual bool haveAdminUsers() const { return false; }
+ virtual bool haveAdminUsers(OperationContext* txn) const { return false; }
};
} // namespace mongo