Skip to content
Snippets Groups Projects
Commit afb8e5eb authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Pb de droits sur le dossier clients.

parent 87cce3ef
No related branches found
No related tags found
No related merge requests found
<?PHP
/* 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
* it under the terms of the GNU General Public License as published by
......@@ -22,10 +23,12 @@
require("./pre.inc.php");
require_once DOL_DOCUMENT_ROOT.'/client.class.php';
$user->getrights("facture");
if (!$user->rights->telephonie->lire)
if (!$user->rights->facture->lire)
accessforbidden();
$facs = array();
$client = new client($db, $_GET["id"]);
$client->fetch($_GET["id"]);
......
......@@ -20,11 +20,12 @@
*
*/
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."/dossier/client/fiche.php?id=".$soc->id, "Factures");
foreach($soc->factures as $key=>$value)
{
$menu->add_submenu(DOL_URL_ROOT."/dossier/client/fiche.php?id=".$soc->id."&amp;facid=".$value[0], $value[1]);
}
$menu->add(DOL_URL_ROOT."/dossier/client/fiche.php?id=".$soc->id, $langs->trans("Bills"));
if ($soc) {
foreach($soc->factures as $key=>$value)
{
$menu->add_submenu(DOL_URL_ROOT."/dossier/client/fiche.php?id=".$soc->id."&amp;facid=".$value[0], $value[1]);
}
}
left_menu($menu->liste);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment