mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
Remove User_Adapter
This commit is contained in:
@@ -34,7 +34,7 @@ abstract class eventsmanager_notifyAbstract extends eventsmanager_eventAbstract
|
||||
|
||||
protected function get_prefs($class, $usr_id)
|
||||
{
|
||||
$user = User_Adapter::getInstance($usr_id, $this->app);
|
||||
$user = $this->app['manipulator.user']->getRepository()->find($usr_id);
|
||||
$pref = $user->get_notifications_preference($this->app, $class);
|
||||
|
||||
return null !== $pref ? $pref : 1;
|
||||
|
Reference in New Issue
Block a user