FIX: delete spammer button was never shown in flag modal

This commit is contained in:
Neil Lalonde 2016-03-14 15:44:57 -04:00
parent f46ced6fc2
commit d0b9b22648

View file

@ -141,7 +141,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
fetchUserDetails() {
if (Discourse.User.currentProp('staff') && this.get('model.username')) {
const AdminUser = require('admin/models/admin-user').default;
AdminUser.find(this.get('model.id')).then(user => this.set('userDetails', user));
AdminUser.find(this.get('model.user_id')).then(user => this.set('userDetails', user));
}
}