FIX: User email was changing in the HTML when you invited a user

This commit is contained in:
Robin Ward 2014-07-29 16:02:30 -04:00
parent ac4a33a656
commit 6844edc564

View file

@ -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(),