Skip to content

Commit

Permalink
DOCS-9305: remove access control section + note about not calling dir…
Browse files Browse the repository at this point in the history
…ectly
  • Loading branch information
kay-kim committed Jul 11, 2017
1 parent 6efbf57 commit bf64f43
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions source/reference/command/killCursors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ Definition

.. dbcommand:: killCursors

Kills the specified cursor or cursors for a collection.
Kills the specified cursor or cursors for a collection. MongoDB
drivers use the :dbcommand:`killCursors` command as part of the
client-side cursor implementation.

.. note::

In general, applications should not use the
:dbcommand:`killCursors` command directly.

.. |command| replace:: killCursors

Expand All @@ -34,25 +41,6 @@ Definition

.. include:: /includes/apiargs/dbcommand-killCursors-field.rst

Access Control
--------------

On systems running with :setting:`~security.authorization`:

- To kill cursors from :dbcommand:`find` operations on a collection,
the user must have access that includes the privilege to
:authaction:`killCursors` and :authaction:`find` on the collection.

- To kill cursors from :dbcommand:`listIndexes` operations on a
collection, the user must have access that includes the privilege to
:authaction:`killCursors` and :authaction:`listIndexes` on the
collection.

- To kill cursors from :dbcommand:`listCollections` operations on a
database, the user must have access that includes the privilege to
:authaction:`killCursors` and :authaction:`listCollections` on the
database.

Example
-------

Expand Down

0 comments on commit bf64f43

Please sign in to comment.