Update email address for telescope
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2022-03-20 12:41:12 +01:00
parent 81a1989e80
commit 51b0ffef72
1 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
namespace App\Providers; namespace App\Providers;
use App\User;
use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Gate;
use Laravel\Telescope\IncomingEntry; use Laravel\Telescope\IncomingEntry;
use Laravel\Telescope\Telescope; use Laravel\Telescope\Telescope;
@ -62,8 +63,8 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
*/ */
protected function gate() protected function gate()
{ {
Gate::define('viewTelescope', function ($user) { Gate::define('viewTelescope', function (User $user) {
return 90166 == $user->mglnr; return 'pille@stamm-silva.de' == $user->email;
}); });
} }
} }