Skip to content

Commit

Permalink
fix last example
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseymoore committed Nov 16, 2023
1 parent 67e1eb7 commit f33e39b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/rules/examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,12 @@ To prevent the role from inserting new documents, set the document-level
The Role Cannot Write to Specific Fields
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To allow a role to write to any field except for those you specify, set
the corresponding field-level ``write`` fields to ``false`` in the
``fields`` document and set the ``additional_fields.write`` field to
``true``. Document-level writes require read
permission, so the role will be able to read all additional fields.
To allow a role to write to any field except for those you specify,
set the document-level ``read`` field to ``true``. Set
the corresponding field-level ``write`` fields to ``false`` and
``read`` fields to ``true`` in the
``fields`` document. Lastly, set the ``additional_fields.write`` field to
``true``.

.. list-table::
:widths: 50 50
Expand All @@ -277,6 +278,7 @@ permission, so the role will be able to read all additional fields.
:width: 350px

- .. code-block:: json
:emphasize-lines: 7, 10-11, 15

{
"name": "<Role Name>",
Expand Down

0 comments on commit f33e39b

Please sign in to comment.