Skip to content

Commit b10343a

Browse files
authored
Merge pull request #6972 from LibreSign/backport/6970/stable33
[stable33] fix: store signature at right user
2 parents 44d5cf2 + 626f988 commit b10343a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/Service/IdentifyMethod/AbstractIdentifyMethod.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,11 @@ protected function throwIfFileNotFound(): void {
192192
$storageUserId = $this->identifyService->getFileMapper()
193193
->getStorageUserIdByUuid($fileInfo['uuid']);
194194
$folderService = $this->identifyService->getFolderService();
195+
$previousUserId = $folderService->getUserId();
195196
$folderService->setUserId($storageUserId);
196197
try {
197198
$folderService->getFileByNodeId($fileInfo['nodeId']);
199+
$folderService->setUserId($previousUserId);
198200
} catch (NotFoundException) {
199201
throw new LibresignException(json_encode([
200202
'action' => JSActions::ACTION_DO_NOTHING,

0 commit comments

Comments
 (0)