Bug fixes
This commit is contained in:
parent
2b6decf5d9
commit
35b4ce2081
1 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue