I shipped a enrichments permission that can be coupled to a database.
There are actually two cases to consider here:
What enrichments is the current user allowed to use?
What databases and tables are they allowed to enrich?
We may have enrichments (e.g. ones with expensive API keys) that are restricted to some users, independent of which tables they are allowed to run them against.
Maybe enrichment is the permission for selecting which enrichments they can use and enrich-table is the one for specific tables?
I shipped a
enrichments
permission that can be coupled to a database.There are actually two cases to consider here:
We may have enrichments (e.g. ones with expensive API keys) that are restricted to some users, independent of which tables they are allowed to run them against.
Maybe
enrichment
is the permission for selecting which enrichments they can use andenrich-table
is the one for specific tables?Originally posted by @simonw in https://github.com/datasette/datasette-enrichments/issues/12#issuecomment-1815745835