mirror of
https://github.com/simonw/datasette.git
synced 2026-07-16 20:44:35 +02:00
Require permissions for untrusted stored query execution, refs #2735
This commit is contained in:
parent
1cd162e9da
commit
1ac4265ffd
4 changed files with 17 additions and 12 deletions
|
|
@ -1285,7 +1285,7 @@ Actor is allowed to view a table (or view) page, e.g. https://latest.datasette.i
|
|||
view-query
|
||||
----------
|
||||
|
||||
Actor is allowed to view (and execute) a saved query page, e.g. https://latest.datasette.io/fixtures/pragma_cache_size - this includes executing :ref:`canned_queries_writable`.
|
||||
Actor is allowed to view a saved query page, e.g. https://latest.datasette.io/fixtures/pragma_cache_size. Executing an untrusted saved query also requires ``execute-sql`` or the relevant write permissions; trusted saved queries can execute with ``view-query`` alone.
|
||||
|
||||
``resource`` - ``datasette.resources.QueryResource(database, query)``
|
||||
``database`` is the name of the database (string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue