Update TelescopeServiceProvider.php
This commit is contained in:
@@ -21,14 +21,12 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
|
||||
|
||||
Telescope::filter(function (IncomingEntry $entry) use ($isProduction) {
|
||||
return !$isProduction || // Permite en desarrollo
|
||||
auth()->check() && in_array(auth()->user()->rol->nombre, ['administrador', 'super']) ||
|
||||
$entry->isReportableException() ||
|
||||
$entry->isFailedRequest() ||
|
||||
$entry->isFailedJob() ||
|
||||
$entry->isScheduledTask() ||
|
||||
$entry->hasMonitoredTag();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user