id,page,ref,title,content,breadcrumbs,references plugin_hooks:permission-plugin-examples,plugin_hooks,permission-plugin-examples,Permission plugin examples,"These snippets show how to use the new permission_resources_sql hook to contribute rows to the action-based permission resolver. Each hook receives the current actor dictionary (or None ) and must return None or an instance or list of datasette.permissions.PermissionSQL (or a coroutine that resolves to that).","[""Plugin hooks"", ""permission_resources_sql(datasette, actor, action)""]",[]