Don't expose manage urls to people without manage access.

This commit is contained in:
flash 2019-07-05 02:17:22 +02:00
parent 045b5d768e
commit d2f3eab015

View file

@ -196,9 +196,14 @@ function url_variable(string $value, array $variables): string {
}
function url_list(): array {
global $hasManageAccess;
$collection = [];
foreach(MSZ_URLS as $name => $urlInfo) {
if(empty($hasManageAccess) && starts_with($name, 'manage-'))
continue;
$item = [
'name' => $name,
'path' => $urlInfo[0],