mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:34:30 -04:00
Bug fixes
This commit is contained in:
parent
2b6decf5d9
commit
35b4ce2081
@ -27,11 +27,13 @@ class HandleUserSettingsChanged {
|
|||||||
*/
|
*/
|
||||||
public function handle(UserSettingsChanged $event)
|
public function handle(UserSettingsChanged $event)
|
||||||
{
|
{
|
||||||
|
if (Auth::check()) {
|
||||||
$account = Auth::user()->account;
|
$account = Auth::user()->account;
|
||||||
$account->loadLocalizationSettings();
|
$account->loadLocalizationSettings();
|
||||||
|
|
||||||
$users = $this->accountRepo->loadAccounts(Auth::user()->id);
|
$users = $this->accountRepo->loadAccounts(Auth::user()->id);
|
||||||
Session::put(SESSION_USER_ACCOUNTS, $users);
|
Session::put(SESSION_USER_ACCOUNTS, $users);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user