kopia lustrzana https://github.com/simonw/datasette
8 wiersze
216 B
Python
8 wiersze
216 B
Python
|
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
|