Skip to content
Snippets Groups Projects
Unverified Commit 211a76ef authored by Vincent Petry's avatar Vincent Petry Committed by Joas Schilling
Browse files

Add comment

parent 614bd5c2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment