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:
co-authored by
Claude Opus 5.5
parent
37592764b5
commit
40fed78da2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user