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; }); } }