fix stupid mistake

This commit is contained in:
Bruno Rybársky 2024-02-01 09:59:02 +01:00
parent 2a4d852611
commit c78f86a600

@ -98,9 +98,9 @@ function getPage($page_name = null): array|false|string
}
$curprivlvl = $_SESSION["privilegelevel"];
echo "Secrecy: $is_secret_page, you need to have $$page_required_permission, you have $curprivlvl";
echo "Secrecy: $is_secret_page, you need to have $page_required_permission, you have $curprivlvl";
if($page_required_permission < $_SESSION["privilegelevel"]){
if($page_required_permission > $_SESSION["privilegelevel"]){
if($is_secret_page == 1) {
$page_tmp = file_get_contents($routerConfig["template_dir"] . "404.html");
$pageMetadata = parsePageTag($page_tmp);