diff --git a/webapp/src/Entity/Executable.php b/webapp/src/Entity/Executable.php index 2784f30541..943bf5410f 100644 --- a/webapp/src/Entity/Executable.php +++ b/webapp/src/Entity/Executable.php @@ -184,8 +184,10 @@ public function getZipfileContent(string $tempdir): string public function checkEnabled(): bool { - if (in_array($execid, ['compare', 'run', 'full_debug'])) { - return true; + foreach (['compare', 'run', 'full_debug'] as $config_script) { + if ($execid === (string)$this->config->get('default_' . $config_script)) { + return true; + } } if (count($problems_compare) || count($problems_run)) { return true;