Skip to content

Commit

Permalink
Implement Tobi his feedback, read from config options
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Oct 4, 2023
1 parent 8f3e00d commit 0ae6b90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webapp/src/Entity/Executable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0ae6b90

Please sign in to comment.