Skip to content

Commit ef371a5

Browse files
committed
Change check on debugbar to use debug not environment
1 parent dfb002f commit ef371a5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
88
* Fixes a UI error when attempting to change the default Nest and Egg for an existing server.
99
* Correct permissions check in UI to allow subusers with permission to `view-allocations` the ability to actually see the sidebar link.
1010
* Fixes improper behavior when marking an egg as copying the configuration from another.
11+
* 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.
1112

1213
### Changed
1314
* Panel now throws proper 504: Gateway Timeout errors on server listing when daemon is offline.

app/Http/Middleware/Api/SetSessionDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(Application $app, ConfigRepository $config)
4141
*/
4242
public function handle(Request $request, Closure $next)
4343
{
44-
if ($this->app->environment() !== 'production') {
44+
if ($this->config->get('app.debug')) {
4545
$this->app->make(LaravelDebugbar::class)->disable();
4646
}
4747

0 commit comments

Comments
 (0)