mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
Update HasUserMenu.php
This commit is contained in:
@@ -14,6 +14,10 @@ trait HasUserMenu
|
||||
|
||||
public function bootHasUserMenu(): void
|
||||
{
|
||||
if (! Filament::auth()->check()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->userMenuItems = Filament::getUserMenuItems();
|
||||
|
||||
foreach ($this->userMenuItems as $action) {
|
||||
|
||||
Reference in New Issue
Block a user