Skip to content

WIP! DOCS-4663: include with token -> extract #2135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions source/includes/extracts-access-eval.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
ref: access-eval-applyOps
inherit:
ref: _access-eval
file: extracts-parent-access-eval.yaml
replacement:
eval-object: ":dbcommand:`applyOps`"
---
ref: access-eval-copyTo
inherit:
ref: _access-eval
file: extracts-parent-access-eval.yaml
replacement:
eval-object: ":method:`db.collection.copyTo()`"

---
ref: access-eval-eval
inherit:
ref: _access-eval
file: extracts-parent-access-eval.yaml
replacement:
eval-object: ":dbcommand:`eval`"
...
9 changes: 9 additions & 0 deletions source/includes/extracts-parent-access-eval.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ref: _access-eval
content: |
If authorization is enabled, you must have access to all actions on
all resources in order to run |eval-object|. Providing such access
is not recommended, but if your organization requires a user to run
|eval-object|, create a role that grants :authaction:`anyAction` on
:ref:`resource-anyresource`. Do not assign this role to any other
user.
...