sections_fts: 100
This data as json
| rowid | title | content |
|---|---|---|
| 100 | permission_allowed() hook is replaced by permission_resources_sql() | The following old code: @hookimpl def permission_allowed(action): if action == "permissions-debug": return True Can be replaced by: from datasette.permissions import PermissionSQL @hookimpl def permission_resources_sql(action): return PermissionSQL.allow(reason="datasette-allow-permissions-debug") A .deny(reason="") class method is also available. For more complex permission checks consult the documentation for that plugin hook: https://docs.datasette.io/en/latest/plugin_hooks.html#permission-resources-sql-datasette-actor-action |