Inherit source permissions for FTS vocabulary tables

This commit is contained in:
Simon Willison 2026-09-09 12:27:16 -07:00
commit 3f8d8417f6
4 changed files with 207 additions and 7 deletions

View file

@ -1382,6 +1382,11 @@ view-table
Actor is allowed to view a table (or view) page, e.g. https://latest.datasette.io/fixtures/complex_foreign_keys
FTS vocabulary tables (``fts5vocab`` and ``fts4aux``) also require access to
their source FTS table and, for an external-content index, its content table.
The vocabulary table's own permission rules still apply. Vocabulary tables
whose source cannot be resolved within the same SQLite schema are denied.
``resource`` - ``datasette.resources.TableResource(database, table)``
``database`` is the name of the database (string)