1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-26 02:52:30 +01:00

Change check on debugbar to use debug not environment

This commit is contained in:
Dane Everitt 2018-03-10 12:03:23 -06:00
parent dfb002fb33
commit ef371a508d
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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();
}