Skip to content

Commit

Permalink
Make "october:env" command privileged.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bennothommo committed Sep 9, 2020
1 parent b251867 commit 619be11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected function registerSingletons()
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
Expand Down

0 comments on commit 619be11

Please sign in to comment.