diff --git a/lib/page.php b/lib/page.php index d8d3608..365ba91 100644 --- a/lib/page.php +++ b/lib/page.php @@ -102,8 +102,11 @@ function getPage($page_name = null): array|false|string $is_secret_page = $routerConfig["default_page_secret"]; } + + $origminlvl = $pageMetadata["parameters"]["minimal_permission_level"]; + $intvalmillvl = intval($origminlvl); $curprivlvl = $_SESSION["privilegelevel"]; - echo "Need $page_required_permission, u have: $curprivlvl"; + echo "Need $page_required_permission(orig: $origminlvl, intval: $intvalmillvl), u have: $curprivlvl"; print_r($pageMetadata["parameters"]); if($page_required_permission > $_SESSION["privilegelevel"]){