Commit d0020fb5 authored by Leigh Stoller's avatar Leigh Stoller

Do not show Update Nodes link unless experiment is running!

parent c458f2b4
......@@ -141,7 +141,8 @@ WRITESUBMENUBUTTON("Edit Experiment Metadata",
#
# Admin and project/experiment leader get this option.
#
if (TBExptAccessCheck($uid, $exp_pid, $exp_eid, $TB_EXPT_UPDATE)) {
if (strcmp($batchstate, TBDB_BATCHSTATE_RUNNING) == 0 &&
TBExptAccessCheck($uid, $exp_pid, $exp_eid, $TB_EXPT_UPDATE)) {
WRITESUBMENUBUTTON("Update All Nodes",
"updateaccounts.php3?pid=$exp_pid&eid=$exp_eid");
}
......
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