mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix deleting guest account
This commit is contained in:
parent
803d685937
commit
8a072fdf0e
@ -191,7 +191,7 @@ class LoginController extends Controller
|
||||
if (auth()->check() && ! auth()->user()->registered) {
|
||||
if (request()->force_logout) {
|
||||
$account = auth()->user()->account;
|
||||
$this->accountRepo->unlinkAccount($account);
|
||||
app('App\Ninja\Repositories\AccountRepository')->unlinkAccount($account);
|
||||
|
||||
if (! $account->hasMultipleAccounts()) {
|
||||
$account->company->forceDelete();
|
||||
|
Loading…
x
Reference in New Issue
Block a user