Added permission for panel pallet count page
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user