From 3c33b421320c0be81a625ca7307b2e4416a9ed5b Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 25 Jul 2020 14:44:42 -0700 Subject: [PATCH] Documenting both false and {} for "deny all" is confusing Refs #906 --- docs/authentication.rst | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/authentication.rst b/docs/authentication.rst index e9611ed5..d429e9c3 100644 --- a/docs/authentication.rst +++ b/docs/authentication.rst @@ -94,15 +94,7 @@ This will match any actors with an ``"id"`` property of ``"root"`` - for example "name": "Root User" } -An allow block can specify "deny all" using an empty ``{}`` (`demo `__): - -.. code-block:: json - - { - "allow": {} - } - -You can also use ``false`` to deny all (`demo `__): +An allow block can specify "deny all" using ``false`` (`demo `__): .. code-block:: json @@ -529,4 +521,4 @@ permissions-debug Actor is allowed to view the ``/-/permissions`` debug page. -Default *deny*. \ No newline at end of file +Default *deny*.