summaryrefslogtreecommitdiff
path: root/src/mongo/db/create_indexes.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/create_indexes.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/create_indexes.idl')
-rw-r--r--src/mongo/db/create_indexes.idl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/create_indexes.idl b/src/mongo/db/create_indexes.idl
index 139a4270c0d..12f629ed7e2 100644
--- a/src/mongo/db/create_indexes.idl
+++ b/src/mongo/db/create_indexes.idl
@@ -30,6 +30,7 @@ global:
cpp_namespace: "mongo"
imports:
+ - "mongo/db/auth/action_type.idl"
- "mongo/db/catalog/commit_quorum.idl"
- "mongo/idl/basic_types.idl"
@@ -158,6 +159,11 @@ commands:
namespace: concatenate_with_db
cpp_name: CreateIndexesCommand
api_version: "1"
+ access_check:
+ simple:
+ privilege:
+ resource_pattern: exact_namespace
+ action_type: createIndex
reply_type: CreateIndexesReply
strict: true
fields: