From f442a8f34b73fd9f0dc6e66c5f80e5b9a71893bc Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 1 Feb 2024 10:20:12 +0100 Subject: [PATCH] debug prints again --- lib/page.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/page.php b/lib/page.php index 365ba91..317cbef 100644 --- a/lib/page.php +++ b/lib/page.php @@ -106,7 +106,8 @@ function getPage($page_name = null): array|false|string $origminlvl = $pageMetadata["parameters"]["minimal_permission_level"]; $intvalmillvl = intval($origminlvl); $curprivlvl = $_SESSION["privilegelevel"]; - echo "Need $page_required_permission(orig: $origminlvl, intval: $intvalmillvl), u have: $curprivlvl"; + $emptyy = empty($pageMetadata["parameters"]["minimal_permission_level"]); + echo "Need $page_required_permission(orig: $origminlvl, intval: $intvalmillvl, empty: $emptyy), u have: $curprivlvl"; print_r($pageMetadata["parameters"]); if($page_required_permission > $_SESSION["privilegelevel"]){