PORT PHRAS-1879 to 4.1 (#2515)

This commit is contained in:
mike-esokia
2018-03-15 20:09:45 +04:00
committed by jygaulier
parent ed29948a33
commit 75db45ee87
2 changed files with 7 additions and 0 deletions

View File

@@ -712,6 +712,8 @@ class Edit extends \Alchemy\Phrasea\Helper\Helper
$user = $this->app['repo.users']->find($usr_id);
$this->app->getAclForUser($user)->apply_model($template, $base_ids);
$this->app['manipulator.user']->updateUser($user);
}
return $this;

View File

@@ -390,4 +390,9 @@ class UserManipulator implements ManipulatorInterface
return $var;
}
public function updateUser(User $user)
{
$this->manager->update($user);
}
}