🆙 More refactored 🆙
This commit is contained in:
1 parent
1e84468d49
commit
fccf4c2116
14 files changed
+169
-83
No files matched your search
@@ -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