diff --git a/htdocs/comm/propal/aideremise.php b/htdocs/comm/propal/aideremise.php index 67e960d861e..09e6834aeaf 100644 --- a/htdocs/comm/propal/aideremise.php +++ b/htdocs/comm/propal/aideremise.php @@ -28,19 +28,12 @@ */ require("./pre.inc.php"); - -$user->getrights('propale'); -if (!$user->rights->propale->lire) - accessforbidden(); - include_once(DOL_DOCUMENT_ROOT."/propal.class.php"); -// Sécurité accés client -if ($user->societe_id > 0) -{ - $action = ''; - $socid = $user->societe_id; -} +$propalid = isset($_GET["propalid"])?$_GET["propalid"]:''; + +// Sécurité d'accès client et commerciaux +$socid = restrictedArea($user, 'propale', $propalid, 'propal'); /******************************************************************************/