fix: fix BD exception in Event.php

This commit is contained in:
Mathieu Lagace
2021-09-27 09:30:52 -04:00
parent 1bec8805a7
commit 527155786a
3 changed files with 5 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
$this->hideSensitiveRequestDetails();
Telescope::filter(function (IncomingEntry $entry) {
if ($this->app->environment('local')) {
if (env('TELESCOPE_ENABLED', true) | $this->app->environment('local')) {
return true;
}
@@ -63,8 +63,8 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
protected function gate()
{
Gate::define('viewTelescope', function ($user) {
return in_array($user->email, [
'admin@exvps.ca'
return in_array($user->rank->id, [
'1',
]);
});
}