mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: correctly excludes current user in user-chooser (#8928)
This commit is contained in:
parent
3e89774908
commit
adbff5835d
@ -41,7 +41,7 @@ export default MultiSelectComponent.extend({
|
||||
let usernames = makeArray(this.value);
|
||||
|
||||
if (this.currentUser && options.excludeCurrentUser) {
|
||||
usernames.concat([this.currentUser.username]);
|
||||
usernames = usernames.concat([this.currentUser.username]);
|
||||
}
|
||||
|
||||
return usernames.concat(options.excludedUsernames || []);
|
||||
|
Loading…
Reference in New Issue
Block a user