From bec1e4ccefe8ee3b9f896e529d9171a83fe7d6a4 Mon Sep 17 00:00:00 2001 From: Venkata Chandra Sekhar Nainala Date: Mon, 30 Sep 2024 14:08:17 +0200 Subject: [PATCH] fix: horizon gate updates --- app/Providers/HorizonServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/HorizonServiceProvider.php b/app/Providers/HorizonServiceProvider.php index 43623b33..fa6147e7 100644 --- a/app/Providers/HorizonServiceProvider.php +++ b/app/Providers/HorizonServiceProvider.php @@ -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']); }); } }