diff --git a/lib/Controller/ArchiveController.php b/lib/Controller/ArchiveController.php index 8c5a4ba6..8681cb32 100644 --- a/lib/Controller/ArchiveController.php +++ b/lib/Controller/ArchiveController.php @@ -89,6 +89,11 @@ class ArchiveController extends ApiBase break; } + // Hit the user's root folder + if ($parent->getPath() === $userFolder->getPath()) { + break; + } + // Hit a storage root try { if ($parent->getParent()->getStorage()->getId() !== $fileStorageId) {