Add auth check in report
This commit is contained in:
parent
2ecab1b6a6
commit
64674fea24
1 changed files with 4 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ class InvoiceReport extends AbstractReport
|
|||
|
||||
public function run()
|
||||
{
|
||||
if (!Auth::user()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$account = Auth::user()->account;
|
||||
$statusIds = $this->options['status_ids'];
|
||||
$exportFormat = $this->options['export_format'];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue