mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Added /-/permissions debug tool, closes #788
Also started the authentication.rst docs page, refs #786. Part of authentication work, refs #699.
This commit is contained in:
parent
57cf5139c5
commit
dfdbdf378a
8 changed files with 152 additions and 3 deletions
7
datasette/default_permissions.py
Normal file
7
datasette/default_permissions.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from datasette import hookimpl
|
||||
|
||||
|
||||
@hookimpl
|
||||
def permission_allowed(actor, action, resource_type, resource_identifier):
|
||||
if actor and actor.get("id") == "root" and action == "permissions-debug":
|
||||
return True
|
||||
Loading…
Add table
Add a link
Reference in a new issue