Change check on debugbar to use debug not environment
This commit is contained in:
parent
dfb002fb33
commit
ef371a508d
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
|
|||
* Fixes a UI error when attempting to change the default Nest and Egg for an existing server.
|
||||
* Correct permissions check in UI to allow subusers with permission to `view-allocations` the ability to actually see the sidebar link.
|
||||
* Fixes improper behavior when marking an egg as copying the configuration from another.
|
||||
* Debug bar is only checked when the app is set to debug mode in the API session handler, rather than when it is in local mode to match the plugin settings.
|
||||
|
||||
### Changed
|
||||
* Panel now throws proper 504: Gateway Timeout errors on server listing when daemon is offline.
|
||||
|
|
|
@ -41,7 +41,7 @@ class SetSessionDriver
|
|||
*/
|
||||
public function handle(Request $request, Closure $next)
|
||||
{
|
||||
if ($this->app->environment() !== 'production') {
|
||||
if ($this->config->get('app.debug')) {
|
||||
$this->app->make(LaravelDebugbar::class)->disable();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue