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.
This commit is contained in:
Ben Thomson 2020-09-09 17:47:18 +08:00
parent b251867f56
commit 619be11d23
No known key found for this signature in database
GPG Key ID: 8BDB18DD0909BE22

View File

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