From 51b0ffef720b8ad07970773badaf3f64aa6af9d7 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sun, 20 Mar 2022 12:41:12 +0100 Subject: [PATCH] Update email address for telescope --- app/Providers/TelescopeServiceProvider.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Providers/TelescopeServiceProvider.php b/app/Providers/TelescopeServiceProvider.php index 834edd38..f3c23657 100644 --- a/app/Providers/TelescopeServiceProvider.php +++ b/app/Providers/TelescopeServiceProvider.php @@ -2,6 +2,7 @@ namespace App\Providers; +use App\User; use Illuminate\Support\Facades\Gate; use Laravel\Telescope\IncomingEntry; use Laravel\Telescope\Telescope; @@ -62,8 +63,8 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider */ protected function gate() { - Gate::define('viewTelescope', function ($user) { - return 90166 == $user->mglnr; + Gate::define('viewTelescope', function (User $user) { + return 'pille@stamm-silva.de' == $user->email; }); } }