mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
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:
parent
e0a4664fba
commit
49d6d2f7b0
16 changed files with 92 additions and 44 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue