Fixed broom closet index being visible while logged out???

This commit is contained in:
flash 2025-01-30 14:55:09 +00:00
parent 3e14f63bdb
commit 269dc78919
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
20250130
20250130.1

View file

@ -136,7 +136,7 @@ if(in_array('main', $msz->env->getArray(sprintf('domain:%s', $request->getHeader
if(str_starts_with($mszLegacyPath, $mszLegacyPathPrefix)) {
$mszLegacyPathReal = realpath($mszLegacyPath);
if($mszLegacyPath === $mszLegacyPathReal || $mszLegacyPath === $mszLegacyPathReal . '/') {
if(str_starts_with($mszRequestPath, '/manage') && !$msz->hasManageAccess())
if(str_starts_with($mszRequestPath, 'manage') && !$msz->hasManageAccess())
Template::throwError(403);
if(is_dir($mszLegacyPath))