Modif permissions
This commit is contained in:
parent
a604aa8029
commit
365be7242d
@ -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");
|
||||
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
|
||||
if (!$user->rights->telephonie->facture->lire) accessforbidden();
|
||||
|
||||
$page = $_GET["page"];
|
||||
$sortorder = $_GET["sortorder"];
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
@ -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++;
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user