Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu 87ae8895c3 Add read-only custom fields that every member sees and only admins set.
A custom field could be hidden from non-admins (adminOnly, #3141), but not
shown to everyone while editable only by admins, which a score or a value
computed elsewhere needs. A custom field can now be marked read-only in its
settings: every board member sees the value, and only a board admin - or the
REST API and rules acting as one - can set, change or clear it. The card
editor offers editing only to board admins, and the server refuses everyone
else through adminOnly's write guard, at the driver boundary, so no write
path is left out. Turning the flag on or off is itself an admin's change.

tests/readOnlyCustomField.test.cjs drives the rule, including setting an
empty field and clearing one. New text is in English, pending Transifex.

Thanks to CarloRampini and xet7 !

Fixes #3143.
2026-10-08 12:05:59 +03:00