fix stupid mistake
This commit is contained in:
parent
2a4d852611
commit
c78f86a600
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user