diff --git a/includes/Helpers/ManageWikiExtensions.php b/includes/Helpers/ManageWikiExtensions.php index 347e876..2f6ad29 100644 --- a/includes/Helpers/ManageWikiExtensions.php +++ b/includes/Helpers/ManageWikiExtensions.php @@ -152,6 +152,12 @@ public function commit() { continue; } + // Unset 'permissions' if we are in CLI mode + // So that we can toggle restricted extensions in CLI + if ( PHP_SAPI === 'cli' && isset( $extConfig['requires']['permissions'] ) ) { + unset( $extConfig['requires']['permissions'] ); + } + // Define a 'current' extension as one with no changes entry $enabledExt = !isset( $this->changes[$name] ); // Now we need to check if we fulfil the requirements to enable this extension