mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Document datasette.allowed(), PermissionSQL class, and SQL parameters
- Added documentation for datasette.allowed() method with keyword-only arguments - Added comprehensive PermissionSQL class documentation with examples - Documented the three SQL parameters available: :actor, :actor_id, :action - Included examples of using json_extract() to access actor fields - Explained permission resolution rules (specificity, deny over allow, implicit deny) - Fixed RST formatting warnings (escaped asterisk, fixed underline length)
This commit is contained in:
parent
c06e05b7db
commit
b8d26754df
2 changed files with 169 additions and 1 deletions
|
|
@ -1445,7 +1445,7 @@ Example: `datasette-permissions-sql <https://datasette.io/plugins/datasette-perm
|
|||
.. _plugin_hook_permission_resources_sql:
|
||||
|
||||
permission_resources_sql(datasette, actor, action)
|
||||
-------------------------------------------------
|
||||
---------------------------------------------------
|
||||
|
||||
``datasette`` - :ref:`internals_datasette`
|
||||
Access to the Datasette instance.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue