diff --git a/html/editpage.php b/html/editpage.php index f26a3c63..935709f3 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -209,17 +209,19 @@ if(isset($fichier)) { echo ''; } } else { - echo "

Pages

"; - echo "
"; - $pages = scandir($wwwroot . "/content/"); - foreach($pages as $page) { - if($page != "." && $page != "..") { - if (is_file($wwwroot . "/content/" . $page)) { - echo "
" . pathinfo($page, PATHINFO_FILENAME) . "
"; + if($_SESSION['role'] >= 3) { + echo "

Pages

"; + echo "
"; + $pages = scandir($wwwroot . "/content/"); + foreach($pages as $page) { + if($page != "." && $page != "..") { + if (is_file($wwwroot . "/content/" . $page)) { + echo "
" . pathinfo($page, PATHINFO_FILENAME) . "
"; + } } } + echo "
"; } - echo "
"; echo "

Articles

"; echo "
";