1
0
forked from poc/pds

Added view access rights

This commit is contained in:
dhanabalan
2025-04-24 10:27:00 +05:30
parent 3ca93bff1a
commit 72d56af9eb
2 changed files with 10 additions and 1 deletions

View File

@@ -54,6 +54,9 @@ class Dashboard extends \Filament\Pages\Dashboard
return 'Production Line Count';
}
public static function canAccess(): bool
{
return Auth::check() && Auth::user()->can('view production line count dashboard');
}
}