Add comment

This commit is contained in:
Vincent Petry 2017-02-28 10:27:24 +01:00 committed by Joas Schilling
parent 614bd5c294
commit 211a76eff3
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node
}
try {
if (!$this->info->isReadable()) {
// return 403 instead of 404 because a 404 would make
// the caller believe that the collection itself does not exist
throw new Forbidden('No read permissions');
}
$folderContent = $this->fileView->getDirectoryContent($this->path);