diff options
Diffstat (limited to 'src/mongo/db/auth/authorization_manager.cpp')
-rw-r--r-- | src/mongo/db/auth/authorization_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/auth/authorization_manager.cpp b/src/mongo/db/auth/authorization_manager.cpp index 71e10b9f0ff..7c0759c0807 100644 --- a/src/mongo/db/auth/authorization_manager.cpp +++ b/src/mongo/db/auth/authorization_manager.cpp @@ -61,7 +61,7 @@ namespace mongo { user->incrementRefCount(); // Pin this user so the ref count never drops below 1. ActionSet allActions; allActions.addAllActions(); - user->addPrivilege(Privilege(AuthorizationManager::WILDCARD_RESOURCE_NAME, allActions)); + user->addPrivilege(Privilege(ResourcePattern::forAnyResource(), allActions)); internalSecurity.user = user; |