diff --git a/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php b/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php index 3d8d9b9a70..ed1c3db10c 100644 --- a/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php +++ b/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php @@ -192,9 +192,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,