Modif permissions

This commit is contained in:
Rodolphe Quiedeville 2005-09-06 14:34:54 +00:00
parent 17b1c6e53c
commit 764882c554
3 changed files with 9 additions and 6 deletions

View File

@ -22,6 +22,9 @@
require("./pre.inc.php");
if (!$user->rights->telephonie->fournisseur->lire)
accessforbidden();
$mesg = '';
if ($_POST["action"] == 'add')

View File

@ -23,16 +23,14 @@ require("./pre.inc.php");
$user->getrights('telephonie');
if (!$user->rights->telephonie->fournisseur->lire)
accessforbidden();
$page = $_GET["page"];
$sortorder = $_GET["sortorder"];
llxHeader();
if (!$user->rights->telephonie->lire)
accessforbidden();
/*
* Sécurité accés client
*/

View File

@ -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/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");