Modif permissions
This commit is contained in:
parent
17b1c6e53c
commit
764882c554
@ -22,6 +22,9 @@
|
|||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
if (!$user->rights->telephonie->fournisseur->lire)
|
||||||
|
accessforbidden();
|
||||||
|
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
|
|
||||||
if ($_POST["action"] == 'add')
|
if ($_POST["action"] == 'add')
|
||||||
|
|||||||
@ -23,16 +23,14 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
$user->getrights('telephonie');
|
$user->getrights('telephonie');
|
||||||
|
|
||||||
|
if (!$user->rights->telephonie->fournisseur->lire)
|
||||||
|
accessforbidden();
|
||||||
|
|
||||||
$page = $_GET["page"];
|
$page = $_GET["page"];
|
||||||
$sortorder = $_GET["sortorder"];
|
$sortorder = $_GET["sortorder"];
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
if (!$user->rights->telephonie->lire)
|
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -42,9 +42,11 @@ function llxHeader($head = "", $title="") {
|
|||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/ligne/index.php", "Lignes");
|
$menu->add(DOL_URL_ROOT."/telephonie/ligne/index.php", "Lignes");
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes");
|
if ($user->rights->telephonie->ligne_commander)
|
||||||
|
$menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes");
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
|
if ($user->rights->telephonie->stats->lire)
|
||||||
|
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
|
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user