diff --git a/app/Http/Controllers/V1/Admin/Estimate/CloneEstimateController.php b/app/Http/Controllers/V1/Admin/Estimate/CloneEstimateController.php index 546b4fcf..64a57f64 100644 --- a/app/Http/Controllers/V1/Admin/Estimate/CloneEstimateController.php +++ b/app/Http/Controllers/V1/Admin/Estimate/CloneEstimateController.php @@ -21,6 +21,7 @@ class CloneEstimateController extends Controller */ public function __invoke(Request $request, Estimate $estimate) { + $this->authorize('view', $estimate); $this->authorize('create', Estimate::class); $date = Carbon::now(); diff --git a/app/Http/Controllers/V1/Admin/Invoice/CloneInvoiceController.php b/app/Http/Controllers/V1/Admin/Invoice/CloneInvoiceController.php index 77596d64..e3775781 100644 --- a/app/Http/Controllers/V1/Admin/Invoice/CloneInvoiceController.php +++ b/app/Http/Controllers/V1/Admin/Invoice/CloneInvoiceController.php @@ -21,6 +21,7 @@ class CloneInvoiceController extends Controller */ public function __invoke(Request $request, Invoice $invoice) { + $this->authorize('view', $invoice); $this->authorize('create', Invoice::class); $date = Carbon::now();