1.16.8 upgrade notes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 10:26:51 +01:00
co-authored by Claude Opus 5.5
parent dfec3fca46
commit 619a4e06ca
6 changed files with 50 additions and 7 deletions
+23 -2
View File
@@ -462,7 +462,7 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
- an account of the collection **can hold `editor` or `admin`** although its roles are not just the plugin's
(`user, editor, admin, boss`; `viewer, editor`; a `roles` field that is text, json or a relationship) — the
field must hold a LIST (`hasMany`; a single-valued `roles` is not affected, its value never counts): the admin rules too,
since the release after 1.16.7 (the value on the account makes a plugin admin or editor). **Check:** do
since 1.16.8 (the value on the account makes a plugin admin or editor). **Check:** do
accounts with one of your own roles (`boss`, `viewer`) manage accounts there? Then write that as the
collection's own rules. Read the start log: `No staff account holds the role "admin", so NOBODY can create,
delete or unlock accounts in "…"` — give one account `admin` with a script, or write the rules;
@@ -477,7 +477,7 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
A staff collection added by a plugin listed after ipalKit gets the same rules at start, put in FRONT of the
rules it has (both must allow). If that plugin's collection needs a rule wider than the plugin's default,
set `custom: { ipal: { accountRules: false } }` on it.
From the release after 1.16.7: a **copy** of a staff collection made by such a plugin (`{ ...staff, slug: 'copy' }`)
From 1.16.8: a **copy** of a staff collection made by such a plugin (`{ ...staff, slug: 'copy' }`)
gets the plugin's rule for its own slug in front of the copied rules — the copy's accounts edit themselves only
after `access: { ...staff.access, update: adminOrSelfIn('copy') }`, and the original's accounts no longer manage
the copy's. A collection of your config that such a plugin makes the panel's (`admin.user`) keeps the rules you
@@ -509,6 +509,27 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
`staff-accounts-open`, `staff-own-roles`, `turnstile-degraded`, `turnstile-env-key`); as an admin `GET /api/globals/site-integrations` shows
`"smtpPassword":"********"`; a test e-mail and a test form still work; an editor and an admin still log in.
**→ 1.16.8 (security follow-ups; CHANGELOG 1.16.8; PROGRAMISTA §6, item 71) — most sites: update, rebuild, read the start log:**
1. Update the package, `pnpm install`, `pnpm ipal:skills`. No option, schema, migration or import-map change.
2. **Built with Turbopack?** `grep -n '"build"' package.json` — `next build` without `--webpack`: the old build serves
the plugin's `package.json` under `/_next/static/media/` (registry and repository addresses, no secret).
`rm -rf .next`, build, `find .next/static -name 'package*.json'` prints nothing; redeploy; purge a CDN or cache.
3. **A staff collection of the project's own** (`grep -n "staffCollections\|admin.*user" src/payload.config.ts`) without
access rules: look at its `roles` field.
- it holds a list that can contain `editor` or `admin` (select with `hasMany` and one of them next to values of
its own; text or relationship with `hasMany`; json): only an admin manages its accounts now. Do accounts with
another role manage them today? Write the collection's own `access.create` / `update` / `delete`;
- a **single** select (no `hasMany`) with only `user` / `editor` / `admin`: its accounts manage each other again.
Does the project's code give rights by that value? Write the collection's own rules;
- anything else: nothing.
4. **Start log:** `No staff account holds the role "admin", so NOBODY can …` → give one account `admin` with a script
(`pnpm payload run`, Local API) or write the rules. `Could not check …` → make sure one account holds `admin`.
5. **A plugin listed after ipalKit that copies a staff collection or sets `admin.user`**
(`grep -rn "\.\.\.staff\|collections: \[\.\.\." src` in the project's own plugins): CHANGELOG 1.16.8 "Requires project
changes" — the copy's `access.update`, `accountRules: false`, or naming the collection in `access.staffCollections`.
**Check:** a customer and the lowest staff account get `403` on `POST /api/<staff collection>`; an admin still manages
accounts; `pnpm exec ipal-doctor --url <site>` (`staff-own-roles`).
## 2. Inventory (no code changes)
**What changed for projects** between your old and new plugin version is exactly the reference site's diff —
`git diff v<old> v<new> -- reference/` in the ipal-kit repo (or the two `docs/agent/reference-site/INDEX.md` files):
+1 -1
View File
@@ -47,7 +47,7 @@ Write everything in this file in English.
<!-- /starter:decisions -->
<!-- ipal-kit:start -->
## ipal-kit 1.16.7 — agent guide
## ipal-kit 1.16.8 — agent guide
<!-- Managed by `pnpm exec ipal-skills` — edits between the markers are overwritten. -->
This project is built on `@intecion/ipal-kit` (a Payload CMS 3 plugin). Before you write code: