diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-02-01 11:19:44 -0500 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-02-01 11:28:50 -0500 |
commit | 255b7bfbd5d8a566b52c70f9209f82067afdedca (patch) | |
tree | 8ea379049f10016df8da34816ceb9b9663e79242 /src | |
parent | edebe4d632290b991c291d5e0e0d8bb7e3f0428b (diff) | |
download | mongo-255b7bfbd5d8a566b52c70f9209f82067afdedca.tar.gz |
SERVER-32958 restore LogRotateCmd's adminOnly override.
(was accidentally deleted by recent
40e43aca44d4dd251b7a1d0ce44c7cb49dcda93f )
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/commands/generic.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/commands/generic.cpp b/src/mongo/db/commands/generic.cpp index 0d0950a0f76..3d7115528f7 100644 --- a/src/mongo/db/commands/generic.cpp +++ b/src/mongo/db/commands/generic.cpp @@ -227,6 +227,9 @@ public: AllowedOnSecondary secondaryAllowed() const override { return AllowedOnSecondary::kAlways; } + bool adminOnly() const override { + return true; + } virtual void addRequiredPrivileges(const std::string& dbname, const BSONObj& cmdObj, std::vector<Privilege>* out) { |