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:
Radosław Smoliński
2026-12-01 10:55:44 +01:00
co-authored by Claude Opus 5.5
parent fc70a34f3e
commit 27ddbc3b41
9 changed files with 167 additions and 5 deletions
+2
View File
@@ -9,6 +9,7 @@ export const consentTexts = defineTexts({
cookieIntegrationStats: 'Built-in statistics',
cookieIntegrationTheme: 'Theme choice',
cookieSourceProject: 'Project',
policyVersionDown: 'The consent version cannot go down: it is {{stored}} now. Raise it to ask every visitor again, or leave it as it is.',
},
pl: {
cookieIntegrationAdmin: 'Logowanie do panelu',
@@ -17,5 +18,6 @@ export const consentTexts = defineTexts({
cookieIntegrationStats: 'Wbudowane statystyki',
cookieIntegrationTheme: 'Wybór motywu',
cookieSourceProject: 'Projekt',
policyVersionDown: 'Wersji zgody nie można obniżyć: teraz wynosi {{stored}}. Podnieś ją, aby ponownie zapytać odwiedzających, albo zostaw bez zmian.',
},
})