We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
disableEditButton
1 parent 657037b commit 3cc6a97Copy full SHA for 3cc6a97
src/Module.php
@@ -129,6 +129,12 @@ function (Event $e) {
129
View::class,
130
View::EVENT_END_BODY,
131
static function (Event $e) {
132
+ if (
133
+ self::$config['disableEditButton']
134
+ ) {
135
+ return;
136
+ }
137
+
138
if (
139
Craft::$app->config->general->devMode ||
140
Craft::$app->user->checkPermission('accessCp')
@@ -219,6 +225,7 @@ private function _loadConfig()
219
225
'tailwind' => [
220
226
'configPath' => Craft::getAlias('@config/tailwind/tailwind.json'),
221
227
],
228
+ 'disableEditButton' => false,
222
229
];
223
230
224
231
$userSettings = Craft::$app->config->getConfigFromFile('viget');
0 commit comments