Commit f03f83fb authored by Leigh B Stoller's avatar Leigh B Stoller

Fix minor bug reported by Rob.

parent f44daf39
......@@ -455,7 +455,7 @@ function Do_DenyOrMoreinfo($action)
SPITAJAX_ERROR(1, "You do not have permission to do this.");
goto bad;
}
if ($instance->admin_lockdown()) {
if ($action == "terminate" && $instance->admin_lockdown()) {
SPITAJAX_ERROR(1, "This experiment has been locked down by an ".
"administrator. The lock must be cleared before ".
"it can terminated.");
......
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