Skip to content

correction to renameCollectionSameDB action type #1641

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
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
15 changes: 7 additions & 8 deletions source/reference/privilege-actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,15 @@ Server Administration Actions
:dbcommand:`renameCollection` command. Apply this action to database
resources.

If a collection with the new name already exists, then the user must
also have the following:
Additionally, the user must either *have* :authaction:`find` on the
source collection or *not have* :authaction:`find` on the destination
collection.

- Either *have* :authaction:`find` on the source, or *do not*
have :authaction:`find` on both the source and target
collections.
If a collection with the new name already exists, the user must also
have the :authaction:`dropCollection` action on the destination
collection.

.. CITE: https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/rename_collection_common.cpp#L53-56

- The :authaction:`dropCollection` action on the source collection.
.. CITE: https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/rename_collection_common.cpp#L53-56

.. authaction:: repairDatabase

Expand Down