A free open source IT asset/license management system
Small tweaks
snipeae109be631b8
diff --git a/app/Providers/TelescopeServiceProvider.php b/app/Providers/TelescopeServiceProvider.phpindex b88c442f86..414cd2467e 100644--- a/app/Providers/TelescopeServiceProvider.php+++ b/app/Providers/TelescopeServiceProvider.php@@ -51,14 +51,16 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider/*** Register the Telescope gate.*- * This gate determines who can access Telescope in non-local environments.+ * This gate determines who can access Telescope in NON-LOCAL environments.*/protected function gate(): void{Gate::define('viewTelescope', function ($user) {- if (($this->app->environment('local')) && ($user->isSuperUser())) {+ if ($user->isSuperUser()) {return true;}++ return false;});}}diff --git a/config/telescope.php b/config/telescope.phpindex fc09cd6054..5208137e9d 100644--- a/config/telescope.php+++ b/config/telescope.php@@ -114,8 +114,6 @@ return ['ignore_paths' => ['livewire*',- 'nova-api*',- 'pulse*',],'ignore_commands' => [diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.phpindex 48ecd6f00d..eb94efe2ea 100644--- a/resources/views/layouts/default.blade.php+++ b/resources/views/layouts/default.blade.php@@ -985,6 +985,13 @@ dir="{{ Helper::determineLanguageDirection() }}">@endif@endif+ @if (($user->isSuperUser()) && (app()->environment('local')))+ <a href="{{ url('telescope') }}" class="btn btn-default btn-xs" rel="noopener">Open Telescope</a>+ @endif++++@if ($snipeSettings->support_footer!='off')@if (($snipeSettings->support_footer=='on') || (($snipeSettings->support_footer=='admin') && (Auth::user()->isSuperUser()=='1')))<a target="_blank" class="btn btn-default btn-xs"