mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Ran blacken-docs
This commit is contained in:
parent
d7d7ead0ef
commit
e7c7e21277
1 changed files with 5 additions and 4 deletions
|
|
@ -441,14 +441,15 @@ Example:
|
|||
# Will raise Forbidden if actor cannot view the table
|
||||
await datasette.ensure_permission(
|
||||
action="view-table",
|
||||
resource=TableResource(database="fixtures", table="cities"),
|
||||
actor=request.actor
|
||||
resource=TableResource(
|
||||
database="fixtures", table="cities"
|
||||
),
|
||||
actor=request.actor,
|
||||
)
|
||||
|
||||
# For instance-level actions, resource can be omitted:
|
||||
await datasette.ensure_permission(
|
||||
action="permissions-debug",
|
||||
actor=request.actor
|
||||
action="permissions-debug", actor=request.actor
|
||||
)
|
||||
|
||||
.. _datasette_check_visibility:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue