mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Redirect to workflow show page if document already signed
Verify the state of the signature. If isSigned is true, redirection to workflow show page.
This commit is contained in:
parent
ee6edba206
commit
0c797c2997
@ -382,6 +382,10 @@ class WorkflowController extends AbstractController
|
||||
throw new NotFoundHttpException('signature not found');
|
||||
}
|
||||
|
||||
if ($signature->isSigned()) {
|
||||
return $this->redirectToRoute('chill_main_workflow_show', ['id' => $signature->getStep()->getEntityWorkflow()->getId()]);
|
||||
}
|
||||
|
||||
if ($signature->getSigner() instanceof User) {
|
||||
return $this->redirectToRoute('chill_main_workflow_signature_add', ['id' => $signature_id]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user