Don't display 'Request changes' link if not logged in.

This commit is contained in:
Jacob 2024-02-05 19:05:00 +01:00
parent 4517a39900
commit ed25c4995a

View file

@ -441,7 +441,10 @@ function printHeader($html, $printpage) {
}
$pid = $i + 1;
$html .= "\t\t\t\t<a id=\"modify\" href=\"/edit-page.php?id=$pid\">Request changes</a>\n";
if (isset($_SESSION['type'])) {
$html .= "\t\t\t\t<a id=\"modify\" href=\"/edit-page.php?id=$pid\">Request changes</a>\n";
}
if ($ret->displayLicense == "true") {
$html .= "\t\t\t\tThis page is licensed under the $License license.";