Added permission for panel pallet count page
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s

This commit is contained in:
dhanabalan
2026-12-01 08:47:26 +05:30
parent 3c909e51e6
commit f3735dab91

View File

@@ -9,6 +9,7 @@ use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Facades\Filament;
use App\Models\Plant;
use Illuminate\Support\Facades\Auth;
class PanelBoxPalletCount extends Page
{
@@ -65,4 +66,9 @@ class PanelBoxPalletCount extends Page
->columns(2)
]);
}
public static function canAccess(): bool
{
return Auth::check() && Auth::user()->can('view panel pallet count page');
}
}