Commit 7539770a authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Allow admin (reddot) to turn off firewalling when experiment is

swapped out.
parent 59a919f4
......@@ -1324,8 +1324,15 @@ sub CheckFWinfo($)
# Experiment cannot go from firewalled to not firewalled, in either the
# swapped or active state.
if ($wasfirewalled && !$nowfirewalled) {
$msg = "Not allowed to turn off firewalling!";
goto noway;
if (! $isadmin) {
$msg = "Not allowed to turn off firewalling!";
goto noway;
}
if ($curstate eq EXPTSTATE_ACTIVE()) {
$msg = "Not allowed to turn off firewalling while active!";
goto noway;
}
goto okay;
}
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment