Update file functions.php

This commit is contained in:
Jan BELLON 2024-03-08 10:32:50 +00:00
parent 8fbd300cf3
commit f4bc05e027

View File

@ -9,7 +9,7 @@ function nav($nav) {
foreach($nav as $name => $url) {
echo "<a href='$url'><div class='navitem'>$name</div></a>";
}
if($_SESSION['role'] >= 4) {
if($_SESSION['role'] >= 3) {
echo "<a href='admin.php'><div class='navitem'>Admin</div></a>";
}
if (isset($_SESSION['userid'])) {