Dont lock /$user/files

This commit is contained in:
Robin Appelman 2015-10-23 14:17:12 +02:00
parent 3d08964b64
commit 9d7138aa50

View file

@ -1941,7 +1941,7 @@ class View {
$pathSegments = explode('/', $path);
if (isset($pathSegments[2])) {
// E.g.: /username/files/path-to-file
return $pathSegments[2] === 'files';
return ($pathSegments[2] === 'files') && (count($pathSegments) > 3);
}
return true;