diff --git a/lib/page.php b/lib/page.php index 28528ac..f6b726f 100644 --- a/lib/page.php +++ b/lib/page.php @@ -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);