test
This commit is contained in:
parent
6fdd76de3d
commit
a2edadd640
@ -1,8 +1,14 @@
|
||||
<?php
|
||||
|
||||
function getDynamicPermission($file): int {
|
||||
global $routerConfig;
|
||||
$page_tmp = include_once($file);
|
||||
return $page_tmp["parameters"]["minimal_permission_level"];
|
||||
$permission_level = $page_tmp["parameters"]["minimal_permission_level"];
|
||||
|
||||
if(!is_numeric($permission_level) || $permission_level <= 0){
|
||||
$permission_level = $routerConfig["default_page_permission_level"];
|
||||
}
|
||||
return $permission_level;
|
||||
}
|
||||
|
||||
function generateNavigation(): string
|
||||
|
Loading…
Reference in New Issue
Block a user