FIX: buttons in user admin page weren't working

This commit is contained in:
Régis Hanol
2016-12-20 12:26:53 +01:00
parent 3c3008fec3
commit c302ffe08f
3 changed files with 47 additions and 78 deletions

View File

@ -257,7 +257,7 @@ const AdminUser = Discourse.User.extend({
});
},
log_out() {
logOut() {
return ajax("/admin/users/" + this.id + "/log_out", {
type: 'POST',
data: { username_or_email: this.get('username') }