Restricted survey creation to $user->rights->opensurvey->write
This commit is contained in:
parent
048e270fec
commit
0a3a6c0f88
@ -27,6 +27,9 @@ require_once(DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php");
|
||||
|
||||
// Security check
|
||||
if (!$user->rights->opensurvey->write) accessforbidden ();
|
||||
|
||||
/*
|
||||
* Action
|
||||
*/
|
||||
|
||||
@ -27,6 +27,9 @@ require_once(DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php");
|
||||
|
||||
// Security check
|
||||
if (!$user->rights->opensurvey->write) accessforbidden ();
|
||||
|
||||
//le format du sondage est DATE
|
||||
$_SESSION["formatsondage"] = "D";
|
||||
|
||||
|
||||
@ -27,8 +27,10 @@ require_once(DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php");
|
||||
|
||||
$langs->load("opensurvey");
|
||||
// Security check
|
||||
if (!$user->rights->opensurvey->write) accessforbidden ();
|
||||
|
||||
$langs->load("opensurvey");
|
||||
|
||||
// On teste toutes les variables pour supprimer l'ensemble des warnings PHP
|
||||
// On transforme en entites html les données afin éviter les failles XSS
|
||||
|
||||
@ -28,8 +28,10 @@ require_once(DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php");
|
||||
|
||||
$langs->load("opensurvey");
|
||||
// Security check
|
||||
if (!$user->rights->opensurvey->write) accessforbidden ();
|
||||
|
||||
$langs->load("opensurvey");
|
||||
|
||||
/*
|
||||
* View
|
||||
|
||||
Loading…
Reference in New Issue
Block a user