Repository navigation
Conversation
Templates can reach any user through the site model, entry creators and the logged-in visitor, and with custom themes on a weblog admin writes templates, so UserWrapper no longer provides an email address. This matches 6.1.8 (ae8bf7d). Bundled themes don't use it, and the template guide no longer lists it. UserWrapperTest checks that the wrapper has no email accessor.
snoopdave
left a comment
There was a problem hiding this comment.
PR-Review: 1 inline comment posted.
| - **Templates no longer get users' email addresses.** `$user.emailAddress` | ||
| and the other user objects in templates, including the logged-in visitor, | ||
| no longer provide one, as in 6.1.8. Bundled themes don't use it; a custom | ||
| theme that does prints nothing there. |
There was a problem hiding this comment.
🐞Gemini Issue: Important: In Velocity (with runtime.references.strict unset in velocity.properties), a non-quiet reference to a removed property like $user.emailAddress or $entry.creator.emailAddress renders literally as $user.emailAddress rather than printing nothing—only $!user.emailAddress (quiet notation) or an #if guard prints nothing. Consider updating this upgrade note (and the PR description) to say it prints the reference as text unless written with $!, matching the earlier macro notes in CHANGES.md.
There was a problem hiding this comment.
Good catch, thanks. Velocity prints a reference it can't resolve as written, so the page shows $user.emailAddress; only $!user.emailAddress or an #if prints nothing. I fixed the CHANGES note and the PR description to say that.
Velocity prints a reference it can't resolve as written, so a custom theme that still uses $user.emailAddress shows that text. Only the quiet form or an #if guard prints nothing.
Templates can reach any user through the site model, entry creators and the logged-in visitor. With custom themes on, a weblog admin writes templates, so a template could print other users' email addresses.
$user.emailAddress, unless it's written$!user.emailAddressor inside an#if.