mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
permission_allowed resource can be a tuple
This commit is contained in:
parent
d9a5ef1c32
commit
02dc6298bd
1 changed files with 2 additions and 2 deletions
|
|
@ -214,8 +214,8 @@ await .permission_allowed(actor, action, resource=None, default=False)
|
||||||
``action`` - string
|
``action`` - string
|
||||||
The name of the action that is being permission checked.
|
The name of the action that is being permission checked.
|
||||||
|
|
||||||
``resource`` - string, optional
|
``resource`` - string or tuple, optional
|
||||||
The resource, e.g. the name of the table. Only some permissions apply to a resource.
|
The resource, e.g. the name of the database, or a tuple of two strings containing the name of the database and the name of the table. Only some permissions apply to a resource.
|
||||||
|
|
||||||
``default`` - optional, True or False
|
``default`` - optional, True or False
|
||||||
Should this permission check be default allow or default deny.
|
Should this permission check be default allow or default deny.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue