allow_sql block to control execute-sql upermission in metadata.json, closes #813

Also removed the --config allow_sql:0 mechanism in favour of the new allow_sql block.
This commit is contained in:
Simon Willison 2020-06-08 17:05:44 -07:00
commit 49d6d2f7b0
16 changed files with 92 additions and 44 deletions

View file

@ -150,15 +150,6 @@ Should users be able to download the original SQLite database using a link on th
datasette mydatabase.db --config allow_download:off
.. _config_allow_sql:
allow_sql
~~~~~~~~~
Enable/disable the ability for users to run custom SQL directly against a database. To disable this feature, run::
datasette mydatabase.db --config allow_sql:off
.. _config_default_cache_ttl:
default_cache_ttl