Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34171

add virtual Command::isUserManagementCommand

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.7.4
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • Platforms 2018-04-09

      commands.cpp currently maintains a whitelist of userManagementCommands strings.
      It's only used to implement CommandHelpers::isUserManagementCommand.

      Other intrinsic command properties like 'requiresAuth' etc are performed as virtual functions.
      isUserManagementCommand should follow that pattern.

      Then the isUserManagementCommand predicate stays correct by construction.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: