mirror of
https://github.com/discourse/discourse.git
synced 2025-05-01 21:14:38 +08:00
Fix: flag modal sometimes doesn't have nuke user button when it should
This commit is contained in:
parent
d25dfb85ce
commit
cf333268d5
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user