Modif permissions

This commit is contained in:
Rodolphe Quiedeville 2005-09-12 13:35:43 +00:00
parent a604aa8029
commit 365be7242d
9 changed files with 24 additions and 15 deletions

View File

@ -59,7 +59,8 @@ function llxHeader($head = "", $title="") {
if ($user->rights->telephonie->stats->lire)
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
if ($user->rights->telephonie->facture->lire)
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
$menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs");

View File

@ -60,7 +60,8 @@ function llxHeader($head = "", $title="") {
if ($user->rights->telephonie->stats->lire)
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
if ($user->rights->telephonie->facture->lire)
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
$menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs");

View File

@ -70,7 +70,8 @@ function llxHeader($head = "", $title="") {
if ($user->rights->telephonie->ligne_commander)
$menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes");
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
if ($user->rights->telephonie->facture->lire)
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
if ($user->rights->telephonie->stats->lire)
{

View File

@ -21,13 +21,12 @@
*/
require("./pre.inc.php");
if (!$user->rights->telephonie->facture->lire) accessforbidden();
$page = $_GET["page"];
$sortorder = $_GET["sortorder"];
if (!$user->rights->telephonie->lire)
accessforbidden();
llxHeader('','Telephonie');
llxHeader('','Telephonie - Factures');
/*
* Sécurité accés client

View File

@ -21,6 +21,7 @@
*/
require("./pre.inc.php");
if (!$user->rights->telephonie->facture->lire) accessforbidden();
$page = $_GET["page"];
$sortorder = $_GET["sortorder"];

View File

@ -68,7 +68,8 @@ function llxHeader($head = "", $title="") {
if ($user->rights->telephonie->stats->lire)
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
if ($user->rights->telephonie->facture->lire)
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
$menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs");

View File

@ -58,11 +58,14 @@ if ($_GET["id"] or $_GET["numero"])
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/fiche.php?id=".$ligne->id;
$head[$h][1] = $langs->trans("Ligne");
$h++;
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
$head[$h][1] = $langs->trans('Factures');
$h++;
if ($user->rights->telephonie->facture->lire)
{
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
$head[$h][1] = $langs->trans('Factures');
$h++;
}
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/infoc.php?id=".$ligne->id;
$head[$h][1] = $langs->trans('Infos');
$h++;

View File

@ -58,7 +58,8 @@ function llxHeader($head = "", $title="") {
if ($user->rights->telephonie->ligne_commander)
$menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes");
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
if ($user->rights->telephonie->facture->lire)
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
if ($user->rights->telephonie->stats->lire)
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");

View File

@ -58,7 +58,8 @@ function llxHeader($head = "", $title="") {
$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures");
$menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs");
if ($user->rights->telephonie->facture->lire)
$menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs");
$menu->add_submenu(DOL_URL_ROOT."/telephonie/tarifs/grilles.php", "Grilles");