From d802dbdfc0349335bad6adf1590bdd1c846e8afb Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Thu, 19 Feb 2026 19:32:11 -0300 Subject: [PATCH] fix: store signature at right user Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- lib/Service/IdentifyMethod/AbstractIdentifyMethod.php | 2 ++ 1 file changed, 2 insertions(+) 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,