mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
Fix #1594 : Removed users are not disconnected
This commit is contained in:
@@ -974,6 +974,12 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
|
||||
$this->app['EM']->remove($provider);
|
||||
}
|
||||
|
||||
$repo = $this->app['EM']->getRepository('Entities\Session');
|
||||
|
||||
foreach ($repo->findByUser($this) as $session) {
|
||||
$this->app['EM']->remove($session);
|
||||
}
|
||||
|
||||
$this->app['EM']->flush();
|
||||
|
||||
$sql = 'UPDATE usr SET usr_login = :usr_login , usr_mail = null
|
||||
|
Reference in New Issue
Block a user