Fix: Pb de droits sur le dossier clients.
This commit is contained in:
parent
87cce3efee
commit
afb8e5eb4d
@ -1,5 +1,6 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -22,10 +23,12 @@
|
|||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require_once DOL_DOCUMENT_ROOT.'/client.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/client.class.php';
|
||||||
|
|
||||||
|
$user->getrights("facture");
|
||||||
|
|
||||||
if (!$user->rights->telephonie->lire)
|
if (!$user->rights->facture->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
$facs = array();
|
$facs = array();
|
||||||
$client = new client($db, $_GET["id"]);
|
$client = new client($db, $_GET["id"]);
|
||||||
$client->fetch($_GET["id"]);
|
$client->fetch($_GET["id"]);
|
||||||
|
|||||||
@ -20,11 +20,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
require(DOL_DOCUMENT_ROOT."/telephonie/lignetel.class.php");
|
|
||||||
$user->getrights('telephonie');
|
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $soc) {
|
|
||||||
global $user, $conf;
|
function llxHeader($head = "", $title="", $soc="") {
|
||||||
|
global $user, $conf, $langs;
|
||||||
|
$langs->load("bills");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
@ -35,13 +36,14 @@ function llxHeader($head = "", $title="", $soc) {
|
|||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/comm/fiche.php?socid=".$soc->id, $soc->nom);
|
$menu->add(DOL_URL_ROOT."/comm/fiche.php?socid=".$soc->id, $soc->nom);
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/dossier/client/fiche.php?id=".$soc->id, "Factures");
|
$menu->add(DOL_URL_ROOT."/dossier/client/fiche.php?id=".$soc->id, $langs->trans("Bills"));
|
||||||
|
|
||||||
foreach($soc->factures as $key=>$value)
|
|
||||||
{
|
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/dossier/client/fiche.php?id=".$soc->id."&facid=".$value[0], $value[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if ($soc) {
|
||||||
|
foreach($soc->factures as $key=>$value)
|
||||||
|
{
|
||||||
|
$menu->add_submenu(DOL_URL_ROOT."/dossier/client/fiche.php?id=".$soc->id."&facid=".$value[0], $value[1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user