fix: allow reupload of contract document by admins if rejected
addresses #869brd1gn
This commit is contained in:
1 parent
862b81d4eb
commit
cf4d4a3566
1 file changed
+3
-1
@@ -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