diff --git a/app/Filament/Pages/WireMasterPrint.php b/app/Filament/Pages/WireMasterPrint.php index 2694d48..6fcadec 100644 --- a/app/Filament/Pages/WireMasterPrint.php +++ b/app/Filament/Pages/WireMasterPrint.php @@ -296,4 +296,9 @@ class WireMasterPrint extends Page 'customer' => $state['customer_po_master_id'], ])); } + + public static function canAccess(): bool + { + return Auth::check() && Auth::user()->can('view wire master print page'); + } }