Skip to content

Commit bb3d989

Browse files
salmart-devicewind1991
authored andcommitted
fix: avoid checking share validity during mount updates
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
1 parent 8e0880e commit bb3d989

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)