DEV: attemps to limit Discourse.User.current() usage (#7943)

This commit is contained in:
Joffrey JAFFEUX
2019-07-26 11:20:11 +02:00
committed by GitHub
parent 0603636cea
commit fe7f0982af
14 changed files with 19 additions and 42 deletions

View File

@ -134,7 +134,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
return this.model.resetBounceScore();
},
approve() {
return this.model.approve();
return this.model.approve(this.currentUser);
},
deactivate() {
return this.model.deactivate();