From 75db45ee87f657504e86d65580fc76e650bd7052 Mon Sep 17 00:00:00 2001 From: mike-esokia Date: Thu, 15 Mar 2018 20:09:45 +0400 Subject: [PATCH] PORT PHRAS-1879 to 4.1 (#2515) --- lib/Alchemy/Phrasea/Helper/User/Edit.php | 2 ++ lib/Alchemy/Phrasea/Model/Manipulator/UserManipulator.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lib/Alchemy/Phrasea/Helper/User/Edit.php b/lib/Alchemy/Phrasea/Helper/User/Edit.php index eea90e776b..5c760a55de 100644 --- a/lib/Alchemy/Phrasea/Helper/User/Edit.php +++ b/lib/Alchemy/Phrasea/Helper/User/Edit.php @@ -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; diff --git a/lib/Alchemy/Phrasea/Model/Manipulator/UserManipulator.php b/lib/Alchemy/Phrasea/Model/Manipulator/UserManipulator.php index 21fca40d6d..8104c04c47 100644 --- a/lib/Alchemy/Phrasea/Model/Manipulator/UserManipulator.php +++ b/lib/Alchemy/Phrasea/Model/Manipulator/UserManipulator.php @@ -390,4 +390,9 @@ class UserManipulator implements ManipulatorInterface return $var; } + + public function updateUser(User $user) + { + $this->manager->update($user); + } }