summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/auth/authorization_session.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/auth/authorization_session.cpp b/src/mongo/db/auth/authorization_session.cpp
index 5288b646a43..bbab218f0b1 100644
--- a/src/mongo/db/auth/authorization_session.cpp
+++ b/src/mongo/db/auth/authorization_session.cpp
@@ -365,7 +365,8 @@ namespace {
}
ResourcePattern resourceSearchList[resourceSearchListCapacity];
const int resourceSearchListLength =
- buildResourceSearchList(ResourcePattern::forClusterResource(), resourceSearchList);
+ buildResourceSearchList(ResourcePattern::forDatabaseName(userName.getDB()),
+ resourceSearchList);
ActionSet actions;
for (int i = 0; i < resourceSearchListLength; ++i) {