From b8c09a9334faabeeba728a64fb28226ccf163400 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 11 Aug 2020 22:56:52 -0700 Subject: [PATCH] Suggest "allow": false instead of "allow": {} --- docs/authentication.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/authentication.rst b/docs/authentication.rst index d429e9c3..f6c5d801 100644 --- a/docs/authentication.rst +++ b/docs/authentication.rst @@ -215,13 +215,13 @@ Here's how to restrict access to your entire Datasette instance to just the ``"i } } -To deny access to all users, you can use ``"allow": {}``: +To deny access to all users, you can use ``"allow": false``: .. code-block:: json { "title": "My entirely inaccessible instance", - "allow": {} + "allow": false } One reason to do this is if you are using a Datasette plugin - such as `datasette-permissions-sql `__ - to control permissions instead.