fix: allow reupload of contract document by admins if rejected
addresses #869brd1gn
This commit is contained in:
@@ -106,6 +106,8 @@ class DispositionVoter extends Voter
|
||||
return false;
|
||||
}
|
||||
|
||||
return null === $disposition->getDocumentByType(Upload::TYPE_CONTRACT);
|
||||
$existingContract = $disposition->getDocumentByType(Upload::TYPE_CONTRACT);
|
||||
|
||||
return null === $existingContract || Upload::STATUS_REJECTED === $existingContract->getStatus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user