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)
|
if ($user->rights->telephonie->stats->lire)
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
|
$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");
|
$menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs");
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,8 @@ function llxHeader($head = "", $title="") {
|
|||||||
if ($user->rights->telephonie->stats->lire)
|
if ($user->rights->telephonie->stats->lire)
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
|
$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");
|
$menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs");
|
||||||
|
|
||||||
|
|||||||
@ -70,7 +70,8 @@ function llxHeader($head = "", $title="") {
|
|||||||
if ($user->rights->telephonie->ligne_commander)
|
if ($user->rights->telephonie->ligne_commander)
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes");
|
$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)
|
if ($user->rights->telephonie->stats->lire)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -21,13 +21,12 @@
|
|||||||
*/
|
*/
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
if (!$user->rights->telephonie->facture->lire) accessforbidden();
|
||||||
|
|
||||||
$page = $_GET["page"];
|
$page = $_GET["page"];
|
||||||
$sortorder = $_GET["sortorder"];
|
$sortorder = $_GET["sortorder"];
|
||||||
|
|
||||||
if (!$user->rights->telephonie->lire)
|
llxHeader('','Telephonie - Factures');
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
llxHeader('','Telephonie');
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
|
|||||||
@ -21,6 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
if (!$user->rights->telephonie->facture->lire) accessforbidden();
|
||||||
|
|
||||||
$page = $_GET["page"];
|
$page = $_GET["page"];
|
||||||
$sortorder = $_GET["sortorder"];
|
$sortorder = $_GET["sortorder"];
|
||||||
|
|||||||
@ -68,7 +68,8 @@ function llxHeader($head = "", $title="") {
|
|||||||
if ($user->rights->telephonie->stats->lire)
|
if ($user->rights->telephonie->stats->lire)
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
|
$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");
|
$menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs");
|
||||||
|
|
||||||
|
|||||||
@ -59,9 +59,12 @@ if ($_GET["id"] or $_GET["numero"])
|
|||||||
$head[$h][1] = $langs->trans("Ligne");
|
$head[$h][1] = $langs->trans("Ligne");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/factures.php?id=".$ligne->id;
|
if ($user->rights->telephonie->facture->lire)
|
||||||
$head[$h][1] = $langs->trans('Factures');
|
{
|
||||||
$h++;
|
$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][0] = DOL_URL_ROOT."/telephonie/ligne/infoc.php?id=".$ligne->id;
|
||||||
$head[$h][1] = $langs->trans('Infos');
|
$head[$h][1] = $langs->trans('Infos');
|
||||||
|
|||||||
@ -58,7 +58,8 @@ function llxHeader($head = "", $title="") {
|
|||||||
if ($user->rights->telephonie->ligne_commander)
|
if ($user->rights->telephonie->ligne_commander)
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes");
|
$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)
|
if ($user->rights->telephonie->stats->lire)
|
||||||
$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques");
|
$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/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");
|
$menu->add_submenu(DOL_URL_ROOT."/telephonie/tarifs/grilles.php", "Grilles");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user