From 619be11d23b77da1eacefea4a215601ac715e1a7 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Wed, 9 Sep 2020 17:47:18 +0800 Subject: [PATCH] Make "october:env" command privileged. This allows developers to use the command even if plugins are failing to boot due to missing configuration options (such as the DB configuration being incorrect). Previously, plugins which use the database in boot would prevent the command from running if the database details were incorrect. This change removes a barrier from configuring your site correctly. --- modules/system/ServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/ServiceProvider.php b/modules/system/ServiceProvider.php index 5ebce0b2f..0ed00230d 100644 --- a/modules/system/ServiceProvider.php +++ b/modules/system/ServiceProvider.php @@ -135,7 +135,7 @@ class ServiceProvider extends ModuleServiceProvider protected function registerPrivilegedActions() { $requests = ['/combine/', '@/system/updates', '@/system/install', '@/backend/auth']; - $commands = ['october:up', 'october:update', 'october:version']; + $commands = ['october:up', 'october:update', 'october:env', 'october:version']; /* * Requests