mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 03:23:19 +00:00
Add user repository as a service
This commit is contained in:
@@ -81,7 +81,7 @@ class module_console_systemMailCheck extends Command
|
||||
$id = $dialog->ask($output, '<question>Which id ?</question>', '');
|
||||
|
||||
try {
|
||||
$tmp_user = $this->container['manipulator.user']->getRepository()->find($id);
|
||||
$tmp_user = $this->container['repo.users']->find($id);
|
||||
|
||||
if ($tmp_user->getEmail() != $email) {
|
||||
throw new Exception('Invalid user');
|
||||
|
Reference in New Issue
Block a user