Ability to create account for members
This commit is contained in:
parent
07db65f63f
commit
2e332b8f3e
5 changed files with 138 additions and 16 deletions
|
|
@ -762,7 +762,7 @@ func ContactEdit(c *fiber.Ctx) error {
|
|||
|
||||
if len(data.Email) > 0 {
|
||||
var personEmail []models.Person
|
||||
result := db.Find(&personEmail, "LOWER(email) = LOWER(?)", data.Email)
|
||||
result := db.Find(&personEmail, "LOWER(email) = LOWER(?) AND id <> ?", data.Email, person.ID)
|
||||
if result.Error != nil {
|
||||
return result.Error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue