mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix tests
This commit is contained in:
@@ -101,14 +101,14 @@ class DisplaySettingService
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getUserNotificationSetting(User $user, $name, $default = false)
|
||||
public function getUserNotificationSetting(User $user, $name, $default = true)
|
||||
{
|
||||
if (false === $user->getNotificationSettings()->containsKey($name)) {
|
||||
|
||||
return $default;
|
||||
}
|
||||
|
||||
return $user->getUserNotificationSetting()->get($name)->getValue();
|
||||
return $user->getNotificationSettings()->get($name)->getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user