FIX: Better error message for resending activation. Don't limit staff.

This commit is contained in:
Robin Ward
2015-10-27 16:25:30 -04:00
parent 010d847c2d
commit 46ca66771b
2 changed files with 5 additions and 6 deletions

View File

@@ -288,10 +288,7 @@ const AdminUser = Discourse.User.extend({
data: { username: this.get('username') }
}).then(function() {
bootbox.alert( I18n.t('admin.user.activation_email_sent') );
}).catch(function(e) {
var error = I18n.t('admin.user.send_activation_email_failed', { error: "http: " + e.status + " - " + e.body });
bootbox.alert(error);
});
}).catch(popupAjaxError);
},
anonymizeForbidden: Em.computed.not("can_be_anonymized"),