mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed table_action example in docs
This commit is contained in:
parent
572bdb5b80
commit
deb5fcbed4
1 changed files with 1 additions and 1 deletions
|
|
@ -1393,7 +1393,7 @@ This example adds a new table action if the signed in user is ``"root"``:
|
|||
|
||||
|
||||
@hookimpl
|
||||
def table_actions(datasette, actor):
|
||||
def table_actions(datasette, actor, database, table):
|
||||
if actor and actor.get("id") == "root":
|
||||
return [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue