role check

This commit is contained in:
2026-02-16 12:56:56 +01:00
parent e4b3689e64
commit f57bdd68da
2 changed files with 2 additions and 4 deletions

View File

@@ -80,9 +80,7 @@ protected function routes(): void
protected function gate(): void
{
Gate::define('viewNova', function (User $user) {
return in_array($user->email, [
'jonathan@blijnder.nl',
]);
return $user->role?->name === 'admin';
});
}