fix: allow reupload of contract document by admins if rejected

addresses #869brd1gn
This commit is contained in:
Björn Fromme
2026-03-15 12:42:27 +01:00
parent 862b81d4eb
commit cf4d4a3566
+3 -1
View File
@@ -106,6 +106,8 @@ class DispositionVoter extends Voter
return false; return false;
} }
return null === $disposition->getDocumentByType(Upload::TYPE_CONTRACT); $existingContract = $disposition->getDocumentByType(Upload::TYPE_CONTRACT);
return null === $existingContract || Upload::STATUS_REJECTED === $existingContract->getStatus();
} }
} }