Commit 82002d6b authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed broken check for always restricted in file lists.

parent dbac5d20
Pipeline #62478 passed with stages
in 24 minutes and 59 seconds
......@@ -808,7 +808,7 @@ class PublicUploadFiles(UploadFiles):
content_path = path[directory_len + (0 if directory_len == 0 else 1):]
if path.startswith(directory) and '/' not in content_path:
if '/' not in content_path:
if not always_restricted(content_path) or self._is_authorized:
if not always_restricted(content_path) or self._is_authorized():
results.append((content_path, zf.getinfo(path).file_size))
else:
# this asserts that sub directories are always behind their
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment