Files
SpiceManagementSystem/app/Filament/User/Resources/ProductResource/Pages/ViewProduct.php
T
Malek TellissiandClaude Sonnet 4.6 0500cab160
Deploy / deploy (push) Successful in 16s
Fix: admin/manager land on edit page, viewer on view page
Filament checks view before edit for row URL. Added a shared
ViewRecord base that redirects to edit if canEdit() is true,
so admins and managers get the editable form directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-13 03:05:05 +02:00

12 lines
259 B
PHP

<?php
namespace App\Filament\User\Resources\ProductResource\Pages;
use App\Filament\User\Resources\ProductResource;
use App\Filament\Pages\ViewRecord;
class ViewProduct extends ViewRecord
{
protected static string $resource = ProductResource::class;
}