All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

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