mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 11:03:17 +00:00
Remove User_Adapter
This commit is contained in:
@@ -81,9 +81,9 @@ class module_console_systemMailCheck extends Command
|
||||
$id = $dialog->ask($output, '<question>Which id ?</question>', '');
|
||||
|
||||
try {
|
||||
$tmp_user = User_Adapter::getInstance($id, $this->container);
|
||||
$tmp_user = $this->container['manipulator.user']->getRepository()->find($id);
|
||||
|
||||
if ($tmp_user->get_email() != $email) {
|
||||
if ($tmp_user->getEmail() != $email) {
|
||||
throw new Exception('Invalid user');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user