summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-11-25 13:12:55 +0100
committerGitHub <noreply@github.com>2022-11-25 13:12:55 +0100
commite8ae4406ce5778c8e5053a03d75b1d41fdd06870 (patch)
treedf2023cdd64a51fc5ad69c8e9fcccf72753b8918 /apps
parentd92c5f78cec5465833fa78b6f8494fb42041999f (diff)
parent48ea9e1c23b6cd869ef720541cca25a046176e2f (diff)
downloadnextcloud-server-e8ae4406ce5778c8e5053a03d75b1d41fdd06870.tar.gz
nextcloud-server-e8ae4406ce5778c8e5053a03d75b1d41fdd06870.zip
Merge pull request #34849 from nextcloud/feat/hint-about-no-access-reasons
Add an hint about reasons why files can't be accessed
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/Directory.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php
index b575a051b2a..f4b1ee62190 100644
--- a/apps/dav/lib/Connector/Sabre/Directory.php
+++ b/apps/dav/lib/Connector/Sabre/Directory.php
@@ -255,7 +255,11 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
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');
+ if (\OCP\Server::get(\OCP\App\IAppManager::class)->isInstalled('files_accesscontrol')) {
+ throw new Forbidden('No read permissions. This might be caused by files_accesscontrol, check your configured rules');
+ } else {
+ throw new Forbidden('No read permissions');
+ }
}
$folderContent = $this->getNode()->getDirectoryListing();
} catch (LockedException $e) {