Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libriciel
web-DPO
Commits
23a7d169
Commit
23a7d169
authored
Jun 13, 2019
by
Théo GUILLON
Browse files
Correction : Si aucun DPO n'a été défini sur l'entité une exception est
lancé
parent
cc9c65fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Controller/FichesController.php
View file @
23a7d169
...
@@ -204,6 +204,18 @@ class FichesController extends AppController
...
@@ -204,6 +204,18 @@ class FichesController extends AppController
$this
->
set
(
'files'
,
$files
);
$this
->
set
(
'files'
,
$files
);
}
}
$ifDPO
=
$this
->
Organisation
->
find
(
'first'
,
[
'conditions'
=>
[
'id'
=>
$this
->
Session
->
read
(
'Organisation.id'
)
],
'fields'
=>
[
'dpo'
]
]);
if
(
empty
(
$ifDPO
[
'Organisation.dpo'
])){
throw
new
ForbiddenException
(
"Aucun DPO n'a été défini pour votre entité. Veuillez contacter votre administrateur."
);
}
$this
->
set
(
'title'
,
__d
(
'fiche'
,
'fiche.titreCrationFiche'
));
$this
->
set
(
'title'
,
__d
(
'fiche'
,
'fiche.titreCrationFiche'
));
$champs
=
$this
->
Champ
->
find
(
'all'
,
[
$champs
=
$this
->
Champ
->
find
(
'all'
,
[
...
...
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