From b38d00ddfc024ec64a503b0cb019995cbc8583ed Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Mon, 5 Jul 2021 13:10:32 +0200 Subject: [PATCH] Add Gate for viewing telescope in production --- app/Providers/TelescopeServiceProvider.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Providers/TelescopeServiceProvider.php b/app/Providers/TelescopeServiceProvider.php index a9ddad22..f6e34845 100644 --- a/app/Providers/TelescopeServiceProvider.php +++ b/app/Providers/TelescopeServiceProvider.php @@ -63,9 +63,7 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider protected function gate() { Gate::define('viewTelescope', function ($user) { - return in_array($user->email, [ - // - ]); + return $user->mglnr == 90166; }); } }