Fix: admin/manager land on edit page, viewer on view page
Deploy / deploy (push) Successful in 16s

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>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-13 03:05:05 +02:00
1 parent 9f42f730b8
commit 0500cab160
8 files changed
+26 -7

No files matched your search

@@ -3,7 +3,7 @@
namespace App\Filament\User\Resources\SpiceSupplierResource\Pages;
use App\Filament\User\Resources\SpiceSupplierResource;
use Filament\Resources\Pages\ViewRecord;
use App\Filament\Pages\ViewRecord;
class ViewSpiceSupplier extends ViewRecord
{