Consent version only goes up (owner's decision Q2, 1.17.2)
A stored consent counts only under the version it was given for, so a lower Cookies →
Consent version made consent given under an older policy valid again. A save through access
control (panel, REST, GraphQL) with a lower number is now refused with a message (English and
Polish); the same or a higher number and saves without it pass; the Local API with
overrideAccess may still lower it. iapl({ cookieSettings: { allowLowerPolicyVersion: true } })
keeps the old behaviour. Building blocks exported: policyVersionNeverDown,
buildCookieSettingsFields, buildCookieSettings. No schema change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
fc70a34f3e
commit
27ddbc3b41
@@ -542,6 +542,13 @@ to add the hook to a config. Nothing to migrate.
|
||||
- **New consent after a policy change:** Cookies → *Consent version* (sidebar). Raise it by 1
|
||||
after adding a tool or changing the policy — every visitor will see the banner again.
|
||||
`getConsentTexts` passes the version to `<ConsentProvider texts>` automatically.
|
||||
- **The consent version only goes up (1.17.2).** A stored consent counts only under the version it was given for,
|
||||
so a lower number would make consent given under an older policy valid again. Saving Cookies with a lower
|
||||
*Consent version* through the panel, REST or GraphQL is refused: "The consent version cannot go down: it is 3
|
||||
now…" (Polish in a Polish panel). The same number, a higher one, or a save without it pass. A script an admin runs
|
||||
with the Local API and `overrideAccess` may still lower it. Turn the rule off: `iapl({ cookieSettings:
|
||||
{ allowLowerPolicyVersion: true } })`. Building blocks: `policyVersionNeverDown` (the field hook),
|
||||
`buildCookieSettingsFields({ allowLowerPolicyVersion })`, `buildCookieSettings(options)`.
|
||||
- **Withdrawing consent deletes the tools' cookies** (`_ga`, `_ga_*`, `_gid`, `_fbp`, `_gcl_*`, Clarity,
|
||||
LinkedIn, TikTok, Hotjar…) — also on the parent domain (`.client.com`), where GA stores them.
|
||||
The project's own cookies: `<ConsentProvider cookieMap={{ marketing: ['_my*'] }}>` (added to the
|
||||
|
||||
Reference in New Issue
Block a user