diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index fa714203352d5..45b3565fbcc4c 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1072,8 +1072,10 @@ protected function promoteReshares(IShare $share): void { foreach ($reshareRecords as $child) { try { + /* Check if the share is still valid (means the resharer still has access to the file through another mean */ $this->generalCreateChecks($child); } catch (GenericShareException $e) { + /* The check is invalid, promote it to a direct share from the sharer of parent share */ $this->logger->debug('Promote reshare because of exception '.$e->getMessage(), ['exception' => $e, 'fullId' => $child->getFullId()]); try { $child->setSharedBy($share->getSharedBy());