summaryrefslogtreecommitdiff
path: root/src/mongo/db/drop_database.idl
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2021-03-21 22:46:19 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-22 03:34:46 +0000
commitce58b728e87056ede78d88d163a3708138be49e1 (patch)
tree9f136eeade40663ba93a62bc97bc0038e0b3c04c /src/mongo/db/drop_database.idl
parent95f8791e5fcbe1945a7ecb3284079c1d8371f212 (diff)
downloadmongo-ce58b728e87056ede78d88d163a3708138be49e1.tar.gz
SERVER-54526 Add access_check: simple to existing commands that have api_version == 1
Diffstat (limited to 'src/mongo/db/drop_database.idl')
-rw-r--r--src/mongo/db/drop_database.idl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/drop_database.idl b/src/mongo/db/drop_database.idl
index 5083a0d8559..2ae5e27d412 100644
--- a/src/mongo/db/drop_database.idl
+++ b/src/mongo/db/drop_database.idl
@@ -30,6 +30,7 @@ global:
cpp_namespace: "mongo"
imports:
+ - "mongo/db/auth/action_type.idl"
- "mongo/idl/basic_types.idl"
commands:
@@ -41,4 +42,9 @@ commands:
cpp_name: DropDatabase
strict: true
api_version: "1"
+ access_check:
+ simple:
+ privilege:
+ resource_pattern: exact_namespace
+ action_type: dropDatabase
reply_type: OkReply