aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-04-06 15:46:38 +0200
committerRobin Appelman <robin@icewind.nl>2022-04-06 18:08:13 +0200
commit5e69f98c16b551327edec2788156b699ee1e38d5 (patch)
treefe77185f85b95d4a874886135fdc2b31277e2c28 /apps/dav/lib/Connector
parentae7205f550d12d713b0b079eb0889c8f3bafb42b (diff)
downloadnextcloud-server-5e69f98c16b551327edec2788156b699ee1e38d5.tar.gz
nextcloud-server-5e69f98c16b551327edec2788156b699ee1e38d5.zip
sh
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/lib/Connector')
-rw-r--r--apps/dav/lib/Connector/Sabre/SharesPlugin.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
index bbfbfc04a72..57c91e05a8c 100644
--- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
@@ -201,18 +201,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin {
!is_null($propFind->getStatus(self::SHAREES_PROPERTYNAME))
)
) {
- try {
- $folderNode = $sabreNode->getNode();
- } catch (NotFoundException $e) {
- // If the folder can't be properly found just return
- return;
- }
-
- if (!($folderNode instanceof Folder)) {
- // Safety check
- return;
- }
-
+ $folderNode = $sabreNode->getNode();
$this->cachedFolders[] = $sabreNode->getPath();
$childShares = $this->getSharesFolder($folderNode);
foreach ($childShares as $id => $shares) {