diff --git a/app/Http/Controllers/PdfController.php b/app/Http/Controllers/PdfController.php index 589f866..3ff90bb 100644 --- a/app/Http/Controllers/PdfController.php +++ b/app/Http/Controllers/PdfController.php @@ -15,7 +15,7 @@ class PdfController extends Controller { public function folha(Request $request, $codpes){ - $this->authorize('boss',$codpes); + $this->authorize('owner',$codpes); $request->validate([ 'in' => 'required|date_format:d/m/Y', diff --git a/resources/views/pdfs/folha.blade.php b/resources/views/pdfs/folha.blade.php index 3fe18ab..07f8b84 100644 --- a/resources/views/pdfs/folha.blade.php +++ b/resources/views/pdfs/folha.blade.php @@ -66,7 +66,7 @@