First, read up on how Datasette's authentication and permissions system works. This plugin lets you define rules containing SQL queries that are executed to see if the currently authenticated actor ...