mirror of
https://github.com/discourse/discourse.git
synced 2025-07-14 01:10:53 +08:00
Fix: flag modal sometimes doesn't have nuke user button when it should
This commit is contained in:
@ -86,7 +86,7 @@ Discourse.FlagController = Discourse.ObjectController.extend(Discourse.ModalFunc
|
|||||||
fetchUserDetails: function() {
|
fetchUserDetails: function() {
|
||||||
if( Discourse.User.current('staff') && this.get('username') ) {
|
if( Discourse.User.current('staff') && this.get('username') ) {
|
||||||
var flagController = this;
|
var flagController = this;
|
||||||
Discourse.AdminUser.find(this.get('username')).then(function(user){
|
Discourse.AdminUser.find(this.get('username').toLowerCase()).then(function(user){
|
||||||
flagController.set('userDetails', user);
|
flagController.set('userDetails', user);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user