Better error message for uneditable "user_notifications.confirm_old_email" texts

Le seguenti due stringhe sono mancanti nell’ultima versione (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":["L'URL o la risorsa richiesta non è stata trovata."],"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":["L'URL o la risorsa richiesta non è stata trovata."],"error_type":"not_found"}"
2 Mi Piace

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.

8 Mi Piace

Opened a PR :slight_smile:

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

6 Mi Piace