Update email address for telescope
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
81a1989e80
commit
51b0ffef72
|
@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue