Skip to content

Commit

Permalink
fix: horizon gate updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Sep 30, 2024
1 parent 6735e6d commit bec1e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/HorizonServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function boot(): void
protected function gate(): void
{
Gate::define('viewHorizon', function ($user) {
return $user->hasAnyRole(['super-admin', 'developer']);
return $user->hasAnyRole(['super_admin', 'developer']);
});
}
}

0 comments on commit bec1e4c

Please sign in to comment.