From a1053e71c86763f1f95c3509b40204abe71fd8ee Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Mon, 26 Jan 2015 08:16:21 -0700 Subject: [PATCH] Get rid of more menu options when experiment is geni. --- www/showexp.php3 | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/www/showexp.php3 b/www/showexp.php3 index 80754aa52..bbb7ec2b5 100644 --- a/www/showexp.php3 +++ b/www/showexp.php3 @@ -1,6 +1,6 @@ logfile() && $experiment->logfile() != "") { WRITESUBMENUBUTTON("View Activity Logfile", CreateURL("showlogfile", $experiment)); @@ -459,28 +459,28 @@ if ($expstate) { } } -WRITESUBMENUBUTTON("Modify Settings", - CreateURL("editexp", $experiment)); - -WRITESUBMENUDIVIDER(); +if (!$geniflags) { + WRITESUBMENUBUTTON("Modify Settings", + CreateURL("editexp", $experiment)); + WRITESUBMENUDIVIDER(); +} -if ($expstate == $TB_EXPTSTATE_ACTIVE) { +if (!$geniflags && $expstate == $TB_EXPTSTATE_ACTIVE) { if (!$geniflags) { WRITESUBMENUBUTTON("Link Tracing/Monitoring", CreateURL("linkmon_list", $experiment)); WRITESUBMENUBUTTON("Event Viewer", CreateURL("showevents", $experiment)); - } - # - # Admin and project/experiment leaders get this option. - # - if ($experiment->AccessCheck($this_user, $TB_EXPT_UPDATE)) { - WRITESUBMENUBUTTON("Update All Nodes", - CreateURL("updateaccounts", $experiment)); + # + # Admin and project/experiment leaders get this option. + # + if ($experiment->AccessCheck($this_user, $TB_EXPT_UPDATE)) { + WRITESUBMENUBUTTON("Update All Nodes", + CreateURL("updateaccounts", $experiment)); + } } - # Reboot option if ($experiment->AccessCheck($this_user, $TB_EXPT_MODIFY)) { WRITESUBMENUBUTTON("Reboot All Nodes", -- 2.22.0