mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
FIX: User email was changing in the HTML when you invited a user
This commit is contained in:
parent
ac4a33a656
commit
6844edc564
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@
|
||||||
export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
|
export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
|
||||||
needs: ['user-invited'],
|
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(){
|
isAdmin: function(){
|
||||||
return Discourse.User.currentProp("admin");
|
return Discourse.User.currentProp("admin");
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
Loading…
Reference in a new issue