Clarify that view-query also lets you execute writable queries

pull/809/head
Simon Willison 2020-06-10 17:10:28 -07:00
rodzic 198545733b
commit ce4958018e
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -461,7 +461,7 @@ Default *allow*.
view-query
----------
Actor is allowed to view a :ref:`canned query <canned_queries>` page, e.g. https://latest.datasette.io/fixtures/pragma_cache_size
Actor is allowed to view (and execute) a :ref:`canned query <canned_queries>` page, e.g. https://latest.datasette.io/fixtures/pragma_cache_size - this includes executing :ref:`canned_queries_writable`.
``resource`` - tuple: (string, string)
The name of the database, then the name of the canned query

Wyświetl plik

@ -223,7 +223,7 @@ Writable canned queries
Canned queries by default are read-only. You can use the ``"write": true`` key to indicate that a canned query can write to the database.
See :ref:`authentication_permissions_metadata` for details on how to add permission checks to canned queries, using the ``"allow"`` key.
See :ref:`authentication_permissions_query` for details on how to add permission checks to canned queries, using the ``"allow"`` key.
.. code-block:: json