From 7de8cefac88b5bbb3e61a491696fa1c317723ea3 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Wed, 19 Oct 2022 13:29:42 -0600 Subject: [PATCH] Add migrate to list of protected commands Prevents issues with unelevated plugins that expect the database to exist always. --- 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 f7d3bfb6d8..eed836ecaa 100644 --- a/modules/system/ServiceProvider.php +++ b/modules/system/ServiceProvider.php @@ -136,7 +136,7 @@ protected function registerSingletons() protected function registerPrivilegedActions() { $requests = ['/combine/', '@/system/updates', '@/system/install', '@/backend/auth']; - $commands = ['winter:up', 'winter:update', 'winter:env', 'winter:version', 'winter:manifest']; + $commands = ['migrate', 'winter:up', 'winter:update', 'winter:env', 'winter:version', 'winter:manifest']; /* * Requests