mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
/db/table/-/drop API, closes #1874
This commit is contained in:
parent
4f16e14d7a
commit
2865d3956f
6 changed files with 114 additions and 11 deletions
|
|
@ -9,7 +9,7 @@ import time
|
|||
@hookimpl(tryfirst=True)
|
||||
def permission_allowed(datasette, actor, action, resource):
|
||||
async def inner():
|
||||
if action in ("permissions-debug", "debug-menu", "insert-row"):
|
||||
if action in ("permissions-debug", "debug-menu", "insert-row", "drop-table"):
|
||||
if actor and actor.get("id") == "root":
|
||||
return True
|
||||
elif action == "view-instance":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue