[SERVER-34171] add virtual Command::isUserManagementCommand Created: 28/Mar/18 Updated: 29/Oct/23 Resolved: 28/Mar/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 3.7.4 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Billy Donahue | Assignee: | Billy Donahue |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Platforms 2018-04-09 |
| Participants: |
| Description |
|
commands.cpp currently maintains a whitelist of userManagementCommands strings. Other intrinsic command properties like 'requiresAuth' etc are performed as virtual functions. Then the isUserManagementCommand predicate stays correct by construction. |
| Comments |
| Comment by Githook User [ 28/Mar/18 ] |
|
Author: {'email': 'billy.donahue@mongodb.com', 'name': 'Billy Donahue', 'username': 'BillyDonahue'}Message: ...rather than a whitelist of names maintained in commands.h. |