fix: avoid persisting full system middleware stack
This commit is contained in:
parent
1b7e152594
commit
cf6e2b1f6a
@ -54,10 +54,10 @@ public function panel(Panel $panel): Panel
|
||||
'ensure-correct-guard:platform',
|
||||
DisableBladeIconComponents::class,
|
||||
DispatchServingFilamentEvent::class,
|
||||
], isPersistent: true)
|
||||
])
|
||||
->authMiddleware([
|
||||
Authenticate::class,
|
||||
'ensure-platform-capability:'.PlatformCapabilities::ACCESS_SYSTEM_PANEL,
|
||||
], isPersistent: true);
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user