Modif permissions
This commit is contained in:
parent
5f197fa519
commit
72dfbcc4e8
@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -21,6 +21,9 @@
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
|
||||
if (!$user->rights->telephonie->service->lire)
|
||||
accessforbidden();
|
||||
|
||||
$page = $_GET["page"];
|
||||
$sortorder = $_GET["sortorder"];
|
||||
$sortfield = $_GET["sortfield"];
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -22,6 +22,9 @@
|
||||
|
||||
require "./pre.inc.php";
|
||||
|
||||
if (!$user->rights->telephonie->service->lire)
|
||||
accessforbidden();
|
||||
|
||||
$mesg = '';
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
|
||||
if (!$user->rights->telephonie->lire) accessforbidden();
|
||||
if (!$user->rights->telephonie->service->lire) accessforbidden();
|
||||
|
||||
llxHeader('','Telephonie - Services');
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -21,6 +21,9 @@
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
|
||||
if (!$user->rights->telephonie->service->lire)
|
||||
accessforbidden();
|
||||
|
||||
$page = $_GET["page"];
|
||||
$sortorder = $_GET["sortorder"];
|
||||
$sortfield = $_GET["sortfield"];
|
||||
|
||||
@ -43,11 +43,13 @@ 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/facture/", "Factures");
|
||||
|
||||
$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/service/", "Services");
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -21,6 +21,9 @@
|
||||
*/
|
||||
require("./pre.inc.php");
|
||||
|
||||
if (!$user->rights->telephonie->service->lire)
|
||||
accessforbidden();
|
||||
|
||||
$page = $_GET["page"];
|
||||
$sortorder = $_GET["sortorder"];
|
||||
$sortfield = $_GET["sortfield"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user