diff --git a/app/Http/Controllers/BaseController.php b/app/Http/Controllers/BaseController.php index 0b63b60801..3c17614da0 100644 --- a/app/Http/Controllers/BaseController.php +++ b/app/Http/Controllers/BaseController.php @@ -257,8 +257,8 @@ class BaseController extends Controller 'company.groups' => function ($query) use ($updated_at, $user) { $query->where('updated_at', '>=', $updated_at)->with('documents'); - if(!$user->isAdmin()) - $query->where('group_settings.user_id', $user->id); + // if(!$user->isAdmin()) + // $query->where('group_settings.user_id', $user->id); }, 'company.invoices'=> function ($query) use ($updated_at, $user) { $query->where('updated_at', '>=', $updated_at)->with('invitations', 'documents'); @@ -499,8 +499,8 @@ class BaseController extends Controller 'company.groups' => function ($query) use ($created_at, $user) { $query->where('created_at', '>=', $created_at)->with('documents'); - if(!$user->isAdmin()) - $query->where('group_settings.user_id', $user->id); + // if(!$user->isAdmin()) + // $query->where('group_settings.user_id', $user->id); }, 'company.invoices'=> function ($query) use ($created_at, $user) { $query->where('created_at', '>=', $created_at)->with('invitations', 'documents');