diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/node.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/node.inc b/includes/node.inc index aa401cea8..d5074ce61 100644 --- a/includes/node.inc +++ b/includes/node.inc @@ -177,7 +177,10 @@ function node_control($node) { </SCRIPT> <?php - $choices = array("node.php?id=$node->nid" => t("view node"), "submit.php?mod=$node->type" => t("add node"), "submit.php?mod=$node->type&op=update&id=$node->nid" => t("update node"), "node.php?op=history&id=$node->nid" => t("view history")); + if ($user->id) + $choices = array("node.php?id=$node->nid" => t("view node"), "submit.php?mod=$node->type" => t("add node"), "submit.php?mod=$node->type&op=update&id=$node->nid" => t("update node"), "node.php?op=history&id=$node->nid" => t("view history")); + else + $choices = array("node.php?id=$node->nid" => t("view node"), "node.php?op=history&id=$node->nid" => t("view history")); $output .= "<FORM METHOD=\"get\" ACTION=\"\">\n"; foreach ($choices as $key => $value) $options .= "<OPTION VALUE=\"$key\"". ("/$key" == $REQUEST_URI ? " SELECTED" : "") .">". check_select($value) ."</OPTION>\n"; |