diff --git a/htdocs/telephonie/adsl/fiche.php b/htdocs/telephonie/adsl/fiche.php index 1444e536158..1a6208f2192 100644 --- a/htdocs/telephonie/adsl/fiche.php +++ b/htdocs/telephonie/adsl/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2005 Rodolphe Quiedeville * * 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,7 @@ require("./pre.inc.php"); +if (!$user->rights->telephonie->adsl->lire) accessforbidden(); $mesg = ''; diff --git a/htdocs/telephonie/adsl/history.php b/htdocs/telephonie/adsl/history.php index f1afafb2a0f..273c8c25c54 100644 --- a/htdocs/telephonie/adsl/history.php +++ b/htdocs/telephonie/adsl/history.php @@ -22,6 +22,8 @@ require("./pre.inc.php"); +if (!$user->rights->telephonie->adsl->lire) accessforbidden(); + $mesg = ''; llxHeader("","","Historique Liaison ADSL"); diff --git a/htdocs/telephonie/adsl/index.php b/htdocs/telephonie/adsl/index.php index e22a725bb57..3b5463566fb 100644 --- a/htdocs/telephonie/adsl/index.php +++ b/htdocs/telephonie/adsl/index.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2005 Rodolphe Quiedeville * * 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,12 +21,11 @@ */ require("./pre.inc.php"); +if (!$user->rights->telephonie->adsl->lire) accessforbidden(); + $page = $_GET["page"]; $sortorder = $_GET["sortorder"]; -if (!$user->rights->telephonie->lire) - accessforbidden(); - llxHeader('','Telephonie'); /* diff --git a/htdocs/telephonie/adsl/liste.php b/htdocs/telephonie/adsl/liste.php index f886eaf714b..44e6eb22987 100644 --- a/htdocs/telephonie/adsl/liste.php +++ b/htdocs/telephonie/adsl/liste.php @@ -21,6 +21,8 @@ */ require("./pre.inc.php"); +if (!$user->rights->telephonie->adsl->lire) accessforbidden(); + $page = $_GET["page"]; $sortorder = $_GET["sortorder"]; $sortfield = $_GET["sortfield"];