Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
fb59d505
Commit
fb59d505
authored
Apr 03, 2019
by
Laurent Lécluse
Browse files
Contrôle pour prévenir les doubles-validations de données personnelles
parent
44fbb7b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/Application/src/Application/Controller/DossierController.php
View file @
fb59d505
...
...
@@ -173,6 +173,10 @@ class DossierController extends AbstractController
$role
=
$this
->
getServiceContext
()
->
getSelectedIdentityRole
();
$intervenant
=
$role
->
getIntervenant
()
?:
$this
->
getEvent
()
->
getParam
(
'intervenant'
);
$dossier
=
$this
->
getServiceDossier
()
->
getByIntervenant
(
$intervenant
);
$validation
=
$this
->
getServiceDossier
()
->
getValidation
(
$intervenant
);
if
(
$validation
){
throw
new
\
Exception
(
'Ce dossier a déjà été validé par '
.
$validation
->
getHistoCreateur
()
.
' le '
.
$validation
->
getHistoCreation
()
->
format
(
Constants
::
DATE_FORMAT
));
}
try
{
$this
->
getServiceValidation
()
->
validerDossier
(
$dossier
);
$this
->
updateTableauxBord
(
$intervenant
,
true
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment