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:
Simon Willison 2020-05-31 22:00:36 -07:00
commit dfdbdf378a
8 changed files with 152 additions and 3 deletions

View 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