Skip to content

Commit 7d2cdc0

Browse files
authored
Merge pull request #59844 from nextcloud/authoritative-deletion-fix
fix: avoid checking share validity during mount updates
2 parents ee9ee69 + 474d358 commit 7d2cdc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_sharing/lib/ShareRecipientUpdater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private function getMountPointFromTarget(IUser $user, string $target): string {
8989
*/
9090
public function updateForDeletedShare(IUser $user, IShare $share): void {
9191
try {
92-
$userShare = $this->shareManager->getShareById($share->getFullId(), $user->getUID());
92+
$userShare = $this->shareManager->getShareById($share->getFullId(), $user->getUID(), false);
9393
$this->userMountCache->removeMount($this->getMountPointFromTarget($user, $userShare->getTarget()), $user);
9494
} catch (ShareNotFound) {
9595
// user doesn't actually have access to the share

0 commit comments

Comments
 (0)