From 549f1cf846b09ae7bc836d56645acd06da9c5590 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 17 Jun 2018 22:21:49 +1000 Subject: [PATCH] Update ExpenseService.php remove duplicate method --- app/Services/ExpenseService.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/Services/ExpenseService.php b/app/Services/ExpenseService.php index 7164e3774c..dac4fa653e 100644 --- a/app/Services/ExpenseService.php +++ b/app/Services/ExpenseService.php @@ -115,21 +115,4 @@ class ExpenseService extends BaseService return $this->datatableService->createDatatable($datatable, $query); } - /** - * @param $clientPublicId - * - * @return \Illuminate\Http\JsonResponse - */ - public function getDatatableClient($clientPublicId) - { - $datatable = new ExpenseDatatable(true, true); - - $query = $this->expenseRepo->findClient($clientPublicId); - - if (! Utils::hasPermission('view_all')) { - $query->where('expenses.user_id', '=', Auth::user()->id); - } - - return $this->datatableService->createDatatable($datatable, $query); - } }