diff --git a/src/Module.php b/src/Module.php index 1a627af..0178f1b 100644 --- a/src/Module.php +++ b/src/Module.php @@ -129,6 +129,12 @@ function (Event $e) { View::class, View::EVENT_END_BODY, static function (Event $e) { + if ( + self::$config['disableEditButton'] + ) { + return; + } + if ( Craft::$app->config->general->devMode || Craft::$app->user->checkPermission('accessCp') @@ -219,6 +225,7 @@ private function _loadConfig() 'tailwind' => [ 'configPath' => Craft::getAlias('@config/tailwind/tailwind.json'), ], + 'disableEditButton' => false, ]; $userSettings = Craft::$app->config->getConfigFromFile('viget');