mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: delete spammer button was never shown in flag modal
This commit is contained in:
parent
f46ced6fc2
commit
d0b9b22648
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue