mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-1562] Fix should not be able to search already selected user (#5414)
This commit is contained in:
committed by
Maurizio Vitale
parent
0ae55ba590
commit
80f805801f
@@ -259,7 +259,7 @@ export class PeopleCloudComponent implements OnInit, OnChanges, OnDestroy {
|
||||
}
|
||||
|
||||
private isUserAlreadySelected(user: IdentityUserModel): boolean {
|
||||
if (this.selectedUsers && this.selectedUsers.length > 0 && this.isMultipleMode()) {
|
||||
if (this.selectedUsers && this.selectedUsers.length > 0) {
|
||||
const result = this.selectedUsers.find((selectedUser) => {
|
||||
return selectedUser.id === user.id || selectedUser.email === user.email || selectedUser.username === user.username;
|
||||
});
|
||||
|
Reference in New Issue
Block a user