mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Last minute fixes in test code and UI
This commit is contained in:
@@ -104,7 +104,10 @@ class Preferences
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
if (null === $user) {
|
||||
return $default;
|
||||
$preference = new Preference;
|
||||
$preference->data = $default;
|
||||
|
||||
return $preference;
|
||||
}
|
||||
|
||||
return $this->getForUser($user, $name, $default);
|
||||
|
Reference in New Issue
Block a user