mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for handler
This commit is contained in:
parent
abfe28371b
commit
b7305a8538
@ -138,7 +138,7 @@ class Handler extends ExceptionHandler
|
|||||||
'email' => 'anonymous@example.com',
|
'email' => 'anonymous@example.com',
|
||||||
'name' => 'Anonymous User',
|
'name' => 'Anonymous User',
|
||||||
]);
|
]);
|
||||||
} elseif (auth()->guard('user') && auth()->guard('user')->user() && auth()->user()->company() && auth()->user()->company()->account->report_errors) {
|
} elseif (auth()->guard('user') && auth()->guard('user')->user() && auth()->user()->companyIsSet() && auth()->user()->company()->account->report_errors) {
|
||||||
$scope->setUser([
|
$scope->setUser([
|
||||||
'id' => auth()->user()->account->key,
|
'id' => auth()->user()->account->key,
|
||||||
'email' => 'anonymous@example.com',
|
'email' => 'anonymous@example.com',
|
||||||
|
@ -311,8 +311,11 @@ class CompanyImport implements ShouldQueue
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unlink($tmp_file);
|
if(file_exists($tmp_file))
|
||||||
unlink(Storage::path($this->file_location));
|
unlink($tmp_file);
|
||||||
|
|
||||||
|
if(Storage::exists($this->file_location))
|
||||||
|
unlink(Storage::path($this->file_location));
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user