Modif permissions
This commit is contained in:
parent
2750208cc8
commit
c61d69cce9
@ -46,6 +46,8 @@ if ($_GET["id"])
|
|||||||
$hselected = $h;
|
$hselected = $h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
if ($user->distributeur_id == 0 || $user->responsable_distributeur_id > 0)
|
||||||
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/contrat.php?id='.$distri->id;
|
$head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/contrat.php?id='.$distri->id;
|
||||||
$head[$h][1] = "Contrat";
|
$head[$h][1] = "Contrat";
|
||||||
$h++;
|
$h++;
|
||||||
@ -61,6 +63,7 @@ if ($_GET["id"])
|
|||||||
$head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/stats.php?id='.$distri->id;
|
$head[$h][0] = DOL_URL_ROOT.'/telephonie/distributeurs/stats.php?id='.$distri->id;
|
||||||
$head[$h][1] = "Statistiques";
|
$head[$h][1] = "Statistiques";
|
||||||
$h++;
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, "Distributeur");
|
dolibarr_fiche_head($head, $hselected, "Distributeur");
|
||||||
|
|
||||||
|
|||||||
@ -21,6 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
if ($user->distributeur_id && $user->responsable_distributeur_id == 0)
|
||||||
|
{
|
||||||
|
accessforbidden();
|
||||||
|
}
|
||||||
|
|
||||||
if (!$user->rights->telephonie->lire) accessforbidden();
|
if (!$user->rights->telephonie->lire) accessforbidden();
|
||||||
|
|
||||||
llxHeader('','Telephonie - Statistiques - Distributeur');
|
llxHeader('','Telephonie - Statistiques - Distributeur');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user