Commit c6cefe2f authored by Timothy Stack's avatar Timothy Stack

Only show "Update Power State" menu item for nodes that use power-by-mail.

parent 02679530
......@@ -47,7 +47,14 @@ echo "<font size=+2>".
if (! $isadmin &&
! TBNodeAccessCheck($uid, $node_id, $TB_NODEACCESS_MODIFYINFO)) {
if (STUDLY()) {
$power_id = "";
$query_result = DBQueryFatal("select power_id from outlets ".
"where node_id='$node_id'");
if (mysql_num_rows($query_result) > 0) {
$row = mysql_fetch_array($query_result);
$power_id = $row[power_id];
}
if (STUDLY() && ($power_id == "mail")) {
SUBPAGESTART();
SUBMENUSTART("Node Options");
......
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