mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PORT PHRAS-1879 to 4.1 (#2515)
This commit is contained in:
@@ -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;
|
||||
|
@@ -390,4 +390,9 @@ class UserManipulator implements ManipulatorInterface
|
||||
|
||||
return $var;
|
||||
}
|
||||
|
||||
public function updateUser(User $user)
|
||||
{
|
||||
$this->manager->update($user);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user