# Falha ao convidar usuários com campo de grupos quando já existe um usuário na lista

**URL:** https://meta.discourse.org/t/inviting-users-with-groups-field-failed-when-there-is-an-existing-user-in-the-list/109990
**Category:** Bug
**Created:** [Fevereiro 25, 2019, 3:32am UTC](https://meta.discourse.org/t/inviting-users-with-groups-field-failed-when-there-is-an-existing-user-in-the-list/109990 "2019-02-25T03:32:15Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [Março 4, 2019, 3:35pm UTC](https://meta.discourse.org/t/inviting-users-with-groups-field-failed-when-there-is-an-existing-user-in-the-list/109990/5 "2019-03-04T15:35:03Z")

</div>

> [@gingerman](#):
>
> This code is same before & after the security fix commit

> [@gingerman](#):
>
> shouldn’t the existing user be added to the group (not topic/PM) before rejecting an invite creation

This used to happen before the security fix as per [this line of code](https://github.com/discourse/discourse/commit/978f0db109cccfb5c1fd80640f0c080a1caca8b8#diff-9592cb71c2bb6ae748d9ac2fc3596e86L106).

I wouldn’t revert this code before discussing with @tgxworld and he is away for the week.

---

_[View the full topic](https://meta.discourse.org/t/inviting-users-with-groups-field-failed-when-there-is-an-existing-user-in-the-list/109990)._
