diff --git a/lib/page.php b/lib/page.php index 06fe207..4c3e17a 100644 --- a/lib/page.php +++ b/lib/page.php @@ -102,6 +102,9 @@ function getPage($page_name = null): array|false|string $is_secret_page = $routerConfig["default_page_secret"]; } + $curprivlvl = $_SESSION["privilegelevel"]; + echo "Need $page_required_permission, u have: $curprivlvl"; + if($page_required_permission > $_SESSION["privilegelevel"]){ if($is_secret_page == 1) { $page_tmp = file_get_contents($routerConfig["template_dir"] . "404.html");