diff --git a/app/Ninja/Reports/InvoiceReport.php b/app/Ninja/Reports/InvoiceReport.php index 1dce1b17b1b9..10b3d7b87083 100644 --- a/app/Ninja/Reports/InvoiceReport.php +++ b/app/Ninja/Reports/InvoiceReport.php @@ -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'];