Browse Source

Add comment

tags/v12.0.0beta1
Vincent Petry 7 years ago
parent
commit
211a76eff3
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      apps/dav/lib/Connector/Sabre/Directory.php

+ 2
- 0
apps/dav/lib/Connector/Sabre/Directory.php 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);

Loading…
Cancel
Save