mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-48426 Cleaned up admin.system.new_users dead code
This commit is contained in:
parent
f275428ee2
commit
c6cebb3373
@ -50,7 +50,6 @@ constexpr StringData AuthorizationManager::V1_USER_SOURCE_FIELD_NAME;
|
||||
|
||||
const NamespaceString AuthorizationManager::adminCommandNamespace("admin.$cmd");
|
||||
const NamespaceString AuthorizationManager::rolesCollectionNamespace("admin.system.roles");
|
||||
const NamespaceString AuthorizationManager::usersAltCollectionNamespace("admin.system.new_users");
|
||||
const NamespaceString AuthorizationManager::usersBackupCollectionNamespace(
|
||||
"admin.system.backup_users");
|
||||
const NamespaceString AuthorizationManager::usersCollectionNamespace("admin.system.users");
|
||||
|
@ -97,7 +97,6 @@ public:
|
||||
|
||||
static const NamespaceString adminCommandNamespace;
|
||||
static const NamespaceString rolesCollectionNamespace;
|
||||
static const NamespaceString usersAltCollectionNamespace;
|
||||
static const NamespaceString usersBackupCollectionNamespace;
|
||||
static const NamespaceString usersCollectionNamespace;
|
||||
static const NamespaceString versionCollectionNamespace;
|
||||
|
@ -373,11 +373,6 @@ void addUserAdminAnyDbPrivileges(PrivilegeVector* privileges) {
|
||||
Privilege(
|
||||
ResourcePattern::forExactNamespace(AuthorizationManager::versionCollectionNamespace),
|
||||
readRoleActions));
|
||||
Privilege::addPrivilegeToPrivilegeVector(
|
||||
privileges,
|
||||
Privilege(
|
||||
ResourcePattern::forExactNamespace(AuthorizationManager::usersAltCollectionNamespace),
|
||||
readRoleActions));
|
||||
Privilege::addPrivilegeToPrivilegeVector(
|
||||
privileges,
|
||||
Privilege(ResourcePattern::forExactNamespace(
|
||||
@ -526,12 +521,6 @@ void addQueryableBackupPrivileges(PrivilegeVector* privileges) {
|
||||
privileges,
|
||||
Privilege(ResourcePattern::forCollectionName("system.profile"), ActionType::find));
|
||||
|
||||
Privilege::addPrivilegeToPrivilegeVector(
|
||||
privileges,
|
||||
Privilege(
|
||||
ResourcePattern::forExactNamespace(AuthorizationManager::usersAltCollectionNamespace),
|
||||
ActionType::find));
|
||||
|
||||
Privilege::addPrivilegeToPrivilegeVector(
|
||||
privileges,
|
||||
Privilege(ResourcePattern::forExactNamespace(
|
||||
@ -623,12 +612,6 @@ void addRestorePrivileges(PrivilegeVector* privileges) {
|
||||
AuthorizationManager::defaultTempRolesCollectionNamespace),
|
||||
ActionType::find));
|
||||
|
||||
Privilege::addPrivilegeToPrivilegeVector(
|
||||
privileges,
|
||||
Privilege(
|
||||
ResourcePattern::forExactNamespace(AuthorizationManager::usersAltCollectionNamespace),
|
||||
actions));
|
||||
|
||||
Privilege::addPrivilegeToPrivilegeVector(
|
||||
privileges,
|
||||
Privilege(ResourcePattern::forExactNamespace(
|
||||
|
Loading…
Reference in New Issue
Block a user