diff options
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/auth/authorization_session.cpp | 3 |
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) { |