mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 04:14:34 -04:00
clean up for basecontroller
This commit is contained in:
parent
de78ea1506
commit
2b9610ea02
@ -346,7 +346,7 @@ class BaseController extends Controller
|
|||||||
|
|
||||||
$data = $this->createItem($item, $transformer, $this->entity_type);
|
$data = $this->createItem($item, $transformer, $this->entity_type);
|
||||||
|
|
||||||
if (request()->include_static) {
|
if (auth()->user() && request()->include_static) {
|
||||||
$data['static'] = Statics::company(auth()->user()->getCompany()->getLocale());
|
$data['static'] = Statics::company(auth()->user()->getCompany()->getLocale());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user