diff --git a/app/assets/javascripts/discourse/controllers/invite.js.es6 b/app/assets/javascripts/discourse/controllers/invite.js.es6 index 0411f3b45..0582d55fe 100644 --- a/app/assets/javascripts/discourse/controllers/invite.js.es6 +++ b/app/assets/javascripts/discourse/controllers/invite.js.es6 @@ -10,6 +10,10 @@ export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, { needs: ['user-invited'], + // If this isn't defined, it will proxy to the user model on the preferences + // page which is wrong. + email: null, + isAdmin: function(){ return Discourse.User.currentProp("admin"); }.property(),