Skip to content

Commit d802dbd

Browse files
fix: store signature at right user
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 46826a1 commit d802dbd

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
@@ -174,9 +174,11 @@ protected function throwIfFileNotFound(): void {
174174
$storageUserId = $this->identifyService->getFileMapper()
175175
->getStorageUserIdByUuid($fileInfo['uuid']);
176176
$folderService = $this->identifyService->getFolderService();
177+
$previousUserId = $folderService->getUserId();
177178
$folderService->setUserId($storageUserId);
178179
try {
179180
$folderService->getFileByNodeId($fileInfo['nodeId']);
181+
$folderService->setUserId($previousUserId);
180182
} catch (NotFoundException) {
181183
throw new LibresignException(json_encode([
182184
'action' => JSActions::ACTION_DO_NOTHING,

0 commit comments

Comments
 (0)