A user (pablico) reported an “Access Denied” error when trying to edit certain email confirmation templates in Discourse’s Personalization panel, specifically those related to confirming old email addresses. The error appears as a 403 and is logged with a generic “Uncaught [object Object]” message. tshenry confirmed the issue is reproducible on Meta, and codinghorror clarified that these templates are intentionally restricted for security reasons — especially for staff accounts, where both old and new emails must be confirmed during changes. j.jaffeux confirmed the restriction is coded explicitly and noted the error, while not ideal, is technically correct. tshenry referenced a prior discussion suggesting a more user-friendly error message was planned. pablico explained their intent was to clean up email subjects by removing redundant [email_prefix] brackets, not for security bypass. codinghorror reiterated that editing these templates could enable phishing, so restriction remains. tshenry suggested using the email prefix site setting to customize the prefix text, though pablico noted the brackets [—] persist regardless. The discussion concludes with two proposed improvements: (1) better error messaging or prevention of the error, and (2) moving the [—] brackets into the email prefix setting for global control.
I think something broke on my Discourse instance while editing text entries on the Personalization panel. Any hint on how to procced would be really appreciated, since I’m not getting really any information about what’s going here.
This what I get each time I press EDIT on this entry:
I can repro this here on Meta with all three of the user_notifications.confirm_old_email templates. We’ll definitely take a look. Thanks for reporting this!
Reminder that these confirm old email templates are not allowed to be changed for security reasons, in the case of staff accounts where both new and old email must be confirmed on email change.
For normal users only the new email has to be confirmed but that is not the case for staff.