You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More refactored 🆙
This commit is contained in:
@@ -21,6 +21,6 @@ class Dashboard extends FilamentDashboard
|
||||
|
||||
public static function canAccess(): bool
|
||||
{
|
||||
return auth()->user()->can('view::admin::' . static::$roleName);
|
||||
return auth()->check() && auth()->user()?->can('view::admin::' . static::$roleName) === true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user