🆙 More refactored 🆙

This commit is contained in:
Remco committed 2026-01-20 20:17:04 +01:00
1 parent 1e84468d49
commit fccf4c2116
14 files changed
+169 -83

No files matched your search

+1 -1
View File
@@ -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;
}
}