fix: avoid checking share validity during mount updates

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
pull/57760/head
Salvatore Martire 4 months ago committed by Robin Appelman
parent 987a193a56
commit e548d71873
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 2
      apps/files_sharing/lib/ShareRecipientUpdater.php

@ -89,7 +89,7 @@ class ShareRecipientUpdater {
*/
public function updateForDeletedShare(IUser $user, IShare $share): void {
try {
$userShare = $this->shareManager->getShareById($share->getFullId(), $user->getUID());
$userShare = $this->shareManager->getShareById($share->getFullId(), $user->getUID(), false);
$this->userMountCache->removeMount($this->getMountPointFromTarget($user, $userShare->getTarget()), $user);
} catch (ShareNotFound) {
// user doesn't actually have access to the share

Loading…
Cancel
Save