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

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)) {
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