Docs: forms reject text over 5000 characters; Site settings update is editor+

(a) The code rejects an over-long value (kind 'too_long', validation text at
the field, answers kept); the limit is fixed. (c) Site settings update needs
the editor role; overridable with globalOverrides.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-24 00:01:18 +01:00
co-authored by Claude Opus 5.5
parent 37592764b5
commit 40fed78da2
2 changed files with 7 additions and 3 deletions
+3 -2
View File
@@ -24,8 +24,9 @@ SiteSettings tabs (unnamed — flat data): **General** (`siteName`, `siteDescrip
**Access:** SiteSettings has `read: () => true` — **the whole global, including fields from
`siteSettingsFields`, is public** over REST/GraphQL (`/api/globals/site-settings`).
Keep nothing confidential there (use SiteIntegrations for that, `read`/`update` admin only).
SiteSettings does not set `update` — Payload's default applies (any logged-in
user of an auth collection).
SiteSettings `update` requires the **editor** role or higher (a plain `user` account must not change the brand,
the homepage or the under-construction mode; without a `roles` field every logged-in account passes). Change it with
`ipalKit({ globalOverrides: { 'site-settings': { access: { update } } } })` (hooks.md).
## Front end — reading globals