diff options
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/SharesPlugin.php')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/SharesPlugin.php | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index d482aa4b510..57c91e05a8c 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -165,7 +165,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { // if we already cached the folder this file is in we know there are no shares for this file if (array_search($parentPath, $this->cachedFolders) === false) { try { - $node = $this->userFolder->get($sabreNode->getPath()); + $node = $sabreNode->getNode(); } catch (NotFoundException $e) { return []; } @@ -201,18 +201,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { !is_null($propFind->getStatus(self::SHAREES_PROPERTYNAME)) ) ) { - try { - $folderNode = $this->userFolder->get($sabreNode->getPath()); - } 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) { |