summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/list_collections.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/list_collections.cpp')
-rw-r--r--src/mongo/db/commands/list_collections.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/list_collections.cpp b/src/mongo/db/commands/list_collections.cpp
index b92c59034ba..fcc11f66297 100644
--- a/src/mongo/db/commands/list_collections.cpp
+++ b/src/mongo/db/commands/list_collections.cpp
@@ -213,7 +213,7 @@ public:
virtual Status checkAuthForCommand(Client* client,
const std::string& dbname,
- const BSONObj& cmdObj) {
+ const BSONObj& cmdObj) const {
AuthorizationSession* authzSession = AuthorizationSession::get(client);
if (authzSession->isAuthorizedToListCollections(dbname)) {