fix: avoid checking share validity during mount updates

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
This commit is contained in:
Salvatore Martire 2026-04-22 15:30:08 +02:00 committed by Robin Appelman
parent 987a193a56
commit e548d71873
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -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