From ec6d44d35063b7fe552623454f539f4174b6ca25 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Sat, 18 Jan 2025 08:22:09 -0300 Subject: [PATCH] fix: list files with deleted signer Signed-off-by: Vitor Mattos --- lib/Service/FileService.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Service/FileService.php b/lib/Service/FileService.php index 65cde493a..34d7124c0 100644 --- a/lib/Service/FileService.php +++ b/lib/Service/FileService.php @@ -779,10 +779,12 @@ private function associateAllAndFormat(IUser $user, array $files, array $signers if ($data['me']) { $temp = array_map(function (IdentifyMethod $identifyMethodEntity) use ($signer): array { $this->identifyMethodService->setCurrentIdentifyMethod($identifyMethodEntity); - $identifyMethod = $this->identifyMethodService->getInstanceOfIdentifyMethod( - $identifyMethodEntity->getIdentifierKey(), - $identifyMethodEntity->getIdentifierValue(), - ); + $identifyMethod = $this->identifyMethodService + ->setIsRequest(false) + ->getInstanceOfIdentifyMethod( + $identifyMethodEntity->getIdentifierKey(), + $identifyMethodEntity->getIdentifierValue(), + ); $signatureMethods = $identifyMethod->getSignatureMethods(); $return = []; foreach ($signatureMethods as $signatureMethod) {