mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix issue loading session preferences (#16041)
during initial login fixes #15866
This commit is contained in:
@@ -47,7 +47,7 @@ class LoadUserPreferences
|
||||
{
|
||||
if (! $request->session()->has('preferences') && ! is_null($request->user())) {
|
||||
$loaded = $request->user()->preferences()->whereIn('pref', $preferences)->pluck('value', 'pref');
|
||||
$request->session()->put('preferences', $loaded);
|
||||
$request->session()->put('preferences', $loaded->toArray());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user