core-bundle/src/Resources/contao/dca/tl_user.php
public function updateCurrentUser(Contao\DataContainer $dc)
	{
		if ($this->User->id == $dc->id)
		{
			$this->User->findBy('id', $this->User->id);
		}
	}
public function updateCurrentUser(Contao\DataContainer $dc)
	{
		if ($this->User->id == $dc->id)
		{
			$this->User->findBy('id', $this->User->id);
		}
	}
Update the current user if something changes, otherwise they would be
logged out automatically

@param Contao\DataContainer $dc