fix: [user:beforeSave] Only call the user-update callback if the user is not new
parent
c65978f8f2
commit
a091edbf22
|
@ -63,7 +63,9 @@ class UsersTable extends AppTable
|
|||
|
||||
public function beforeSave(EventInterface $event, EntityInterface $entity, ArrayObject $options)
|
||||
{
|
||||
$success = $this->handleUserUpdateRouter($entity);
|
||||
if (!$entity->isNew()) {
|
||||
$success = $this->handleUserUpdateRouter($entity);
|
||||
}
|
||||
return $success;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue