Skip to content

Commit bdac689

Browse files
committed
fix(formanswer): missing right check
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent f5dfae0 commit bdac689

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

front/formanswer.form.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@
7171

7272
// Show target ticket form
7373
} else {
74-
if (plugin_formcreator_replaceHelpdesk()) {
74+
$formanswer->getFromDB(intval((int) $_GET['id']));
75+
if (!$formanswer->checkEntity()) {
76+
Html::displayRightError();
77+
}
78+
if (plugin_formcreator_replaceHelpdesk()) {
7579
PluginFormcreatorWizard::header(__('Service catalog', 'formcreator'));
7680
} else {
7781
if ($_SESSION['glpiactiveprofile']['interface'] == 'helpdesk') {

0 commit comments

Comments
 (0)