diff --git a/src/Plugin.php b/src/Plugin.php index c58a45d..af6f906 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -47,7 +47,11 @@ protected function settingsHtml(): ?string { // Get and pre-validate the settings $settings = $this->getSettings(); - $settings->validate(); + + $readOnly = !Craft::$app->getConfig()->getGeneral()->allowAdminChanges; + if (!$readOnly) { + $settings->validate(); + } // Get the settings that are being defined by the config file $overrides = Craft::$app->getConfig()->getConfigFromFile(strtolower($this->handle));