mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
fix provider
This commit is contained in:
1 parent
48e2ce2ca4
commit
f63036454e
1 file changed
+2
-2
@@ -31,8 +31,8 @@ class HorizonServiceProvider extends HorizonApplicationServiceProvider
|
||||
*/
|
||||
protected function gate(): void
|
||||
{
|
||||
$root_user = User::find(0);
|
||||
Gate::define('viewHorizon', function ($user) use ($root_user) {
|
||||
Gate::define('viewHorizon', function ($user) {
|
||||
$root_user = User::find(0);
|
||||
return in_array($user->email, [
|
||||
$root_user->email
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user