Files
alamin-br d63c32fa7a fix: require read access to the linked table for joins and link writes (#6608)
* fix: require read access to the linked table for joins and link writes

A token or restricted role limited to one table could read a linked table through
joins, and read its primary values by linking rows.

* fix: batch linked table checks and cover the remaining link write paths

Checks now run once per linked table so queries stay flat, and token batch results no longer take the last table's outcome.
Undo, skipped import columns and restricted-view self-links work again; upsert names and view default links are checked.

* fix: authorize link row view defaults when they are saved

An unreadable default on a shared view blocked everyone from adding rows there, so saving a new one now needs linked-table read.
Personal views keep the check on row creation because their owner configures them.

* fix: link the checked rows and explain linked table denials

Names were resolved again after the check, ids of missing rows passed it,
and the UI sends view defaults as values. Denials now name the linked table.

* fix: resolve self-link names per field and recheck trusted link defaults

Name lookups ran once per row in batch writes, and saved link defaults stayed
trusted after the field's linked table or the view's ownership changed.

* fix: check the linked table for link filters, assistant row tools and batch services

A link row filter and the assistant's row tools returned names of rows from a
table the user can't read, and batch services validated links before the check.
A default kept from another field type could be re-saved without the check.

* fix: restore removed link defaults on undo and refresh them in open views

Removing defaults on a link target change lost them on undo and left open
views sending the old value. Copying defaults into a view that trusts them
skipped the linked table check.
2026-11-17 09:17:33 +01:00
..
2026-01-22 10:27:19 +01:00