debug prints again

This commit is contained in:
Bruno Rybársky 2024-02-01 10:19:28 +01:00
parent 8208980118
commit 4d73c81c89

@ -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"]){