Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Tinebase/WebDAV): skip 404 children
Browse files Browse the repository at this point in the history
Change-Id: I5bde3d4371dffc6b8a4959c120e364cf3a577b01
Reviewed-on: http://gerrit.tine20.com/customers/16241
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de>
  • Loading branch information
pschuele committed Apr 6, 2020
1 parent bc46441 commit 26a37fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tine20/Tinebase/Frontend/WebDAV/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,12 @@ public function getChildren()

// Loop through the directory, and create objects for each node
foreach (Tinebase_FileSystem::getInstance()->scanDir($this->_path) as $node) {
if (Tinebase_Core::getUser()->hasGrant($node, Tinebase_Model_Grants::GRANT_READ)) {
$children[] = $this->getChild($node->name);
try {
if (Tinebase_Core::getUser()->hasGrant($node, Tinebase_Model_Grants::GRANT_READ)) {
$children[] = $this->getChild($node->name);
}
} catch (Tinebase_Exception_NotFound $tenf) {
// skip
}
}

Expand Down

0 comments on commit 26a37fd

Please sign in to comment.