Fix #yogosha5657

This commit is contained in:
Laurent Destailleur 2021-03-18 12:18:38 +01:00
parent e37e0399e5
commit af340ec133

View File

@ -39,6 +39,9 @@ $object = new Opensurveysondage($db);
$result = $object->fetch(0, $numsondage);
if ($result <= 0) dol_print_error('', 'Failed to get survey id '.$numsondage);
// Security check
if (!$user->rights->opensurvey->read) accessforbidden();
/*
* Actions