Add Gate for viewing telescope in production

This commit is contained in:
Philipp Lang 2021-07-05 13:10:32 +02:00
parent da7fd88b5a
commit b38d00ddfc
1 changed files with 1 additions and 3 deletions

View File

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