mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +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);
|
$user = $this->app['repo.users']->find($usr_id);
|
||||||
|
|
||||||
$this->app->getAclForUser($user)->apply_model($template, $base_ids);
|
$this->app->getAclForUser($user)->apply_model($template, $base_ids);
|
||||||
|
|
||||||
|
$this->app['manipulator.user']->updateUser($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|||||||
@@ -390,4 +390,9 @@ class UserManipulator implements ManipulatorInterface
|
|||||||
|
|
||||||
return $var;
|
return $var;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function updateUser(User $user)
|
||||||
|
{
|
||||||
|
$this->manager->update($user);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user