Skip to content

Commit

Permalink
🍞 admin: fix cpanel saving error
Browse files Browse the repository at this point in the history
  • Loading branch information
Belikhun committed Aug 23, 2021
1 parent 54fd59f commit 2a091d1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions api/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@
// Set new config into current config
$rawConfig = $defConfig;

if ($rawConfig["contest"]["result"]["publish"] !== true) {
$rawConfig["contest"]["ranking"]["enabled"] = false;
$rawConfig["contest"]["log"]["enabled"] = false;
}

if ($rawConfig["contest"]["ranking"]["viewTask"] !== true)
$rawConfig["contest"]["log"]["viewOther"] = false;

if ($changed === 0)
// Stop executing if no change applied
stop(102, "Woah nothing happened", 200);
Expand Down

0 comments on commit 2a091d1

Please sign in to comment.