Better error message for uneditable "user_notifications.confirm_old_email" texts

The following two strings are missing on the latest version (Discourse 2.3.0.beta5).

1. requestedUrl: "/admin/customize/site_texts/user_notifications.confirm_old_email.subject_template"
2. responseJSON: {errors: Array(1), error_type: "not_found"}
3. responseText: "{"errors":["The requested URL or resource could not be found."],"error_type":"not_found"}"

1. requestedUrl: "/admin/customize/site_texts/user_notifications.confirm_old_email.subject_template"
2. responseJSON: {errors: Array(1), error_type: "not_found"}
3. responseText: "{"errors":["The requested URL or resource could not be found."],"error_type":"not_found"}"
2 Likes

The ability to edit those strings was removed last May as a reaction to a social engineering attack.

I guess there should be a friendly error message instead of a generic error 404 to make it less confusing.

7 Likes

Opened a PR :slight_smile:

https://github.com/discourse/discourse/pull/7304

5 Likes