diff --git a/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php b/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php index 465ac7643e..018964d9a8 100644 --- a/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php +++ b/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php @@ -174,9 +174,11 @@ protected function throwIfFileNotFound(): void { $storageUserId = $this->identifyService->getFileMapper() ->getStorageUserIdByUuid($fileInfo['uuid']); $folderService = $this->identifyService->getFolderService(); + $previousUserId = $folderService->getUserId(); $folderService->setUserId($storageUserId); try { $folderService->getFileByNodeId($fileInfo['nodeId']); + $folderService->setUserId($previousUserId); } catch (NotFoundException) { throw new LibresignException(json_encode([ 'action' => JSActions::ACTION_DO_NOTHING,