diff --git a/lib/Service/VerdictService.php b/lib/Service/VerdictService.php index fcdaf863..2467fe36 100644 --- a/lib/Service/VerdictService.php +++ b/lib/Service/VerdictService.php @@ -120,6 +120,10 @@ private function tagFile(int $fileId, string $tagName) { } catch (Exception) { } break; + case TagService::UNSCANNED: + $unscannedTagIsDisabled = $this->appConfig->getValueBool(Application::APP_ID, 'disableUnscannedTag'); + if (!$unscannedTagIsDisabled) + $this->tagService->setTag($fileId, $tagName); case TagService::CLEAN: case TagService::PUP: case TagService::WONT_SCAN: @@ -195,7 +199,7 @@ public function tagLastScannedFile(string $localPath, int $fileId): void { if ($this->lastVaasVerdict !== null) { $this->tagFile($fileId, $this->lastVaasVerdict->Verdict->value); } else { - $this->tagFile($fileId, TagService::UNSCANNED); + $this->tagFile($fileId, TagService::UNSCANNED); } } }