mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add auth check in report
This commit is contained in:
parent
2ecab1b6a6
commit
64674fea24
@ -47,6 +47,10 @@ class InvoiceReport extends AbstractReport
|
|||||||
|
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
|
if (!Auth::user()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$account = Auth::user()->account;
|
$account = Auth::user()->account;
|
||||||
$statusIds = $this->options['status_ids'];
|
$statusIds = $this->options['status_ids'];
|
||||||
$exportFormat = $this->options['export_format'];
|
$exportFormat = $this->options['export_format'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user