Skip to content

Commit 626f988

Browse files
fix: store signature at right user
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 44d5cf2 commit 626f988

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)