Commit 1adb2069 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minot change to last revision; let anyone swapmod a swapped firewalled

or elabinelab experiment, but continue to allow only admins to do it
if the experiment is active. Just while I continue to debug.
parent 6eff9de6
......@@ -456,11 +456,13 @@ else {
$estate ne EXPTSTATE_ACTIVATING) ||
$batchstate ne BATCHSTATE_UNLOCKED());
ExitWithStatus(1, "Cannot modify a firewalled experiment (yet).")
if ($firewalled && !$isadmin);
ExitWithStatus(1,
"Cannot modify an active firewalled experiment (yet).")
if ($firewalled && $estate ne EXPTSTATE_SWAPPED && !$isadmin);
ExitWithStatus(1, "Cannot modify an ElabInElab experiment (yet).")
if ($elabinelab && !$isadmin);
ExitWithStatus(1,
"Cannot modify an active ElabInElab experiment (yet).")
if ($elabinelab && $estate ne EXPTSTATE_SWAPPED && !$isadmin);
#
# Otherwise, proceed with the modify. The experiment will be
......@@ -559,12 +561,14 @@ else {
"SWAPPED to modify!\n");
}
ExitWithStatus(1,
"Cannot modify a firewalled experiment (yet).")
if ($firewalled && !$isadmin);
"Cannot modify an active firewalled experiment (yet).")
if ($firewalled &&
$estate ne EXPTSTATE_SWAPPED && !$isadmin);
ExitWithStatus(1,
"Cannot modify an ElabInElab experiment (yet).")
if ($elabinelab && !$isadmin);
"Cannot modify an active ElabInElab experiment (yet).")
if ($elabinelab &&
$estate ne EXPTSTATE_SWAPPED && !$isadmin);
last SWITCH;
};
......
Markdown is supported
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