kopia lustrzana https://github.com/simonw/datasette
Clarify that view-query also lets you execute writable queries
rodzic
198545733b
commit
ce4958018e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue