M1 review round 2: docs, agent guide, skills, changelog; the reference types without the removed field

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 00:39:24 +01:00
co-authored by Claude Fable 5.2
parent 7002ebbfa6
commit 3e44863c98
17 changed files with 206 additions and 150 deletions
+9 -5
View File
@@ -250,9 +250,14 @@ the panel shows Site settings, Site integrations, Cookies, Form messages, the Fo
- **Account rules** (`accounts`, on by default; `false` or key by key to change): the panel opens for `editor`
and above (`panelRole`; an account with only `user` sees "Unauthorized", the API is not touched — give panel
users at least `editor`); only an admin creates staff accounts, and an account is changed by an admin or by
itself — also in the project's own staff collection (`adminOnlyCreate`, `adminOnlyWrite`; a staff collection
with role values of its own gets "an account of that collection, or a plugin admin" instead, so write its
`create` / `update` / `delete` / `read` rules yourself); Payload's first-user route answers only for the
itself, nobody changes its own roles, and only staff accounts read staff accounts — also in the project's own
staff collection and in one a later plugin adds (`adminOnlyCreate`, `adminOnlyWrite`, `staffOnlyRead`). **A
staff collection with role values of its own** (not `user` / `editor` / `admin`) gets only "an account of that
collection, or a plugin admin": the plugin cannot rank your roles, so inside it every account may create an
account with any role — **write its `create` / `update` / `delete` rules and the field access of its `roles`
field yourself** (`ipal-doctor --url` → `staff-own-roles`). Give every staff collection a `roles` field: without
one each of its accounts is an admin to the plugin. Every slug in `access.staffCollections` must be an auth
collection of the config, or the site does not start; Payload's first-user route answers only for the
panel's login collection (`firstUserRoute`) — so **create the first account right after the first deploy**, it
becomes the admin; a new password has at least 12 characters (`password`). A customer collection with
sign-up: write its own `create: () => true`; the rules do not touch it. Do not combine
@@ -266,8 +271,7 @@ the panel shows Site settings, Site integrations, Cookies, Form messages, the Fo
them; `TURNSTILE_SECRET_KEY` is deprecated (local test keys in `.env` still work). Read them only on the
server with the Local API. `secrets: { writeOnly: false }` turns it off. Changing the SMTP server, port or
user name in the panel asks for the password again (`secrets.reenterOnChange`); a seed with the Local API is
not asked. Tick **Require encryption** in Site integrations → E-mail sending where the mail server supports
STARTTLS (off by default; the field `smtpRequireTls` needs a migration on Postgres / SQLite).
not asked.
- **Forms with files** are refused while Turnstile cannot check (wrong keys, Cloudflare down); text forms are
still accepted. `forms: { turnstileOnConfigError: … }` changes either.
- A second auth collection (`customers`, a client zone): set `admin: { user: 'users' }` in `buildConfig`; its