amber-backend/pb_public
Claude 874eab21dc Don't tell an account about 18+ when it hasn't got any
The child-profile checkbox read "Dětský profil (skryje anime a 18+, na
odchod chce PIN)" for everyone. Three of the four accounts are
nsfwEnabled = false, so for most of the household that sentence announced
a section they have never seen and cannot reach, and it was also untrue:
there is no 18+ content on those accounts to hide.

The adult source field on the Zdroje tab has always been gated on the same
flag. This label was the one place on the page that was not, because it was
static markup rather than something rendered from USER.

Now set in enter(): "skryje anime" alone, or "skryje anime a 18+" when the
account has it. Checked both branches against a clean and an adult test
user on a local instance.

The app is already clean here: childProfileDesc is only "K opuštění tohoto
profilu je potřeba PIN", and every 18+ string in app_cs.arb lives inside
the adult section itself, which a clean build does not contain.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-12 22:04:36 +02:00
..
index.html Don't tell an account about 18+ when it hasn't got any 2026-08-12 22:04:36 +02:00
status.html The dashboard edits any group, not whichever one it found 2026-08-12 21:54:12 +02:00