mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
Fix: flag modal sometimes doesn't have nuke user button when it should
This commit is contained in:
parent
d25dfb85ce
commit
cf333268d5
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ Discourse.FlagController = Discourse.ObjectController.extend(Discourse.ModalFunc
|
|||
fetchUserDetails: function() {
|
||||
if( Discourse.User.current('staff') && this.get('username') ) {
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue