Filtre acces client
This commit is contained in:
parent
81d6148e30
commit
b26b2b979a
@ -25,6 +25,15 @@ require("../project.class.php3");
|
||||
|
||||
$db = new Db();
|
||||
|
||||
/*
|
||||
* Sécurité accés client
|
||||
*/
|
||||
if ($user->societe_id > 0)
|
||||
{
|
||||
$action = '';
|
||||
$socidp = $user->societe_id;
|
||||
}
|
||||
|
||||
|
||||
$sql = "SELECT s.nom, s.idp, s.prefix_comm FROM societe as s WHERE s.idp = $socidp;";
|
||||
|
||||
@ -399,7 +408,7 @@ if ($id)
|
||||
|
||||
print '<br><table border="1" cellspadding="3" cellspacing="0" width="100%"><tr>';
|
||||
|
||||
if ($fichinter->statut == 0)
|
||||
if ($fichinter->statut == 0 && $user->societe_id == 0)
|
||||
{
|
||||
|
||||
print '<td align="center" width="20%"><a href="fiche.php3?id='.$id.'&action=edit">Mettre à jour</a></td>';
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*
|
||||
* 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
|
||||
@ -18,6 +15,9 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
require ("./main.inc.php3");
|
||||
@ -114,7 +114,7 @@ function llxHeader($head = "") {
|
||||
$menu->add("/admin/", "Configuration");
|
||||
}
|
||||
|
||||
if ($conf->voyage)
|
||||
if ($conf->voyage && $user->societe_id == 0)
|
||||
{
|
||||
|
||||
$menu->add("/compta/voyage/index.php3","Voyages");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user