diff --git a/lib/navigation.php b/lib/navigation.php index 8422d10..df9fe06 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -5,8 +5,9 @@ function getDynamicMetadata($file): array{ return include($file); } -function getDynamicPermission($params): int { +function getDynamicPermission($metadata): int { global $routerConfig; + $params = $metadata["parameters"]; try { $permission_level = $params["minimal_permission_level"];