mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix permissions_execute_sql warnings in documentation
This commit is contained in:
parent
5705ce0d95
commit
2b962beaeb
4 changed files with 5 additions and 5 deletions
|
|
@ -28,7 +28,7 @@ The index page can also be accessed at ``/-/``, useful for if the default index
|
||||||
Database
|
Database
|
||||||
========
|
========
|
||||||
|
|
||||||
Each database has a page listing the tables, views and canned queries available for that database. If the :ref:`permissions_execute_sql` permission is enabled (it's on by default) there will also be an interface for executing arbitrary SQL select queries against the data.
|
Each database has a page listing the tables, views and canned queries available for that database. If the :ref:`actions_execute_sql` permission is enabled (it's on by default) there will also be an interface for executing arbitrary SQL select queries against the data.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
|
|
@ -60,7 +60,7 @@ The following tables are hidden by default:
|
||||||
Queries
|
Queries
|
||||||
=======
|
=======
|
||||||
|
|
||||||
The ``/database-name/-/query`` page can be used to execute an arbitrary SQL query against that database, if the :ref:`permissions_execute_sql` permission is enabled. This query is passed as the ``?sql=`` query string parameter.
|
The ``/database-name/-/query`` page can be used to execute an arbitrary SQL query against that database, if the :ref:`actions_execute_sql` permission is enabled. This query is passed as the ``?sql=`` query string parameter.
|
||||||
|
|
||||||
This means you can link directly to a query by constructing the following URL:
|
This means you can link directly to a query by constructing the following URL:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1426,7 +1426,7 @@ Here's an example that allows users to view the ``admin_log`` table only if thei
|
||||||
|
|
||||||
return inner
|
return inner
|
||||||
|
|
||||||
See :ref:`built-in permissions <permissions>` for a full list of permissions that are included in Datasette core.
|
See :ref:`built-in permissions <authentication_permissions>` for a full list of permissions that are included in Datasette core.
|
||||||
|
|
||||||
Example: `datasette-permissions-sql <https://datasette.io/plugins/datasette-permissions-sql>`_
|
Example: `datasette-permissions-sql <https://datasette.io/plugins/datasette-permissions-sql>`_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ default_allow_sql
|
||||||
|
|
||||||
Should users be able to execute arbitrary SQL queries by default?
|
Should users be able to execute arbitrary SQL queries by default?
|
||||||
|
|
||||||
Setting this to ``off`` causes permission checks for :ref:`permissions_execute_sql` to fail by default.
|
Setting this to ``off`` causes permission checks for :ref:`actions_execute_sql` to fail by default.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Datasette treats SQLite database files as read-only and immutable. This means it
|
||||||
|
|
||||||
The easiest way to execute custom SQL against Datasette is through the web UI. The database index page includes a SQL editor that lets you run any SELECT query you like. You can also construct queries using the filter interface on the tables page, then click "View and edit SQL" to open that query in the custom SQL editor.
|
The easiest way to execute custom SQL against Datasette is through the web UI. The database index page includes a SQL editor that lets you run any SELECT query you like. You can also construct queries using the filter interface on the tables page, then click "View and edit SQL" to open that query in the custom SQL editor.
|
||||||
|
|
||||||
Note that this interface is only available if the :ref:`permissions_execute_sql` permission is allowed. See :ref:`authentication_permissions_execute_sql`.
|
Note that this interface is only available if the :ref:`actions_execute_sql` permission is allowed. See :ref:`authentication_permissions_execute_sql`.
|
||||||
|
|
||||||
Any Datasette SQL query is reflected in the URL of the page, allowing you to bookmark them, share them with others and navigate through previous queries using your browser back button.
|
Any Datasette SQL query is reflected in the URL of the page, allowing you to bookmark them, share them with others and navigate through previous queries using your browser back button.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue