Update ExpenseService.php
remove duplicate method
This commit is contained in:
parent
56f13a019e
commit
549f1cf846
1 changed files with 0 additions and 17 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue