1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Bug fixes

This commit is contained in:
Hillel Coren 2015-08-16 17:33:30 +03:00
parent 2b6decf5d9
commit 35b4ce2081

View File

@ -27,11 +27,13 @@ class HandleUserSettingsChanged {
*/
public function handle(UserSettingsChanged $event)
{
$account = Auth::user()->account;
$account->loadLocalizationSettings();
if (Auth::check()) {
$account = Auth::user()->account;
$account->loadLocalizationSettings();
$users = $this->accountRepo->loadAccounts(Auth::user()->id);
Session::put(SESSION_USER_ACCOUNTS, $users);
$users = $this->accountRepo->loadAccounts(Auth::user()->id);
Session::put(SESSION_USER_ACCOUNTS, $users);
}
}
}