From e548d718738fea82fc72d4a4e22a61ad2710cd43 Mon Sep 17 00:00:00 2001 From: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> Date: Wed, 22 Apr 2026 15:30:08 +0200 Subject: [PATCH] fix: avoid checking share validity during mount updates Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> --- apps/files_sharing/lib/ShareRecipientUpdater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/ShareRecipientUpdater.php b/apps/files_sharing/lib/ShareRecipientUpdater.php index 2d8f3bddeab..144bdc7bc94 100644 --- a/apps/files_sharing/lib/ShareRecipientUpdater.php +++ b/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