mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Suggest "allow": false instead of "allow": {}
This commit is contained in:
parent
309d7191a1
commit
b8c09a9334
1 changed files with 2 additions and 2 deletions
|
|
@ -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 <https://github.com/simonw/datasette-permissions-sql>`__ - to control permissions instead.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue