Messages: Exclude deleted users from message recipient search - refs BT#21845

pull/5632/head
christianbeeznst 5 months ago
parent 09e3fa61be
commit 17112d271d
  1. 11
      assets/vue/components/message/Form.vue
  2. 1
      src/CoreBundle/Entity/User.php

@ -179,11 +179,12 @@ watch(
async function asyncFind(query) {
const { items } = await userService.findBySearchTerm(query)
return items.map((member) => ({
name: member.fullName,
value: member["@id"],
}))
return items
.filter(member => member.active === 1)
.map(member => ({
name: member.fullName,
value: member["@id"],
}))
}
function onUploadSuccess({ response }) {

@ -643,6 +643,7 @@ class User implements UserInterface, EquatableInterface, ResourceInterface, Reso
#[ORM\Column(name: 'expiration_date', type: 'datetime', unique: false, nullable: true)]
protected ?DateTime $expirationDate = null;
#[Groups(['user:read', 'user_json:read'])]
#[ORM\Column(name: 'active', type: 'integer')]
protected int $active;

Loading…
Cancel
Save