mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Adjustments for eager loading
This commit is contained in:
parent
6c7df568dc
commit
26a7e73694
@ -797,7 +797,7 @@ class BaseController extends Controller
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
'company.tasks' => function ($query) use ($created_at, $user) {
|
'company.tasks' => function ($query) use ($created_at, $user) {
|
||||||
$query->where('created_at', '>=', $created_at)->with('documents');
|
$query->where('created_at', '>=', $created_at)->with('project.documents','documents');
|
||||||
|
|
||||||
if (! $user->hasPermission('view_task')) {
|
if (! $user->hasPermission('view_task')) {
|
||||||
$query->whereNested(function ($query) use ($user) {
|
$query->whereNested(function ($query) use ($user) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user