From f81323d56dfc70774cdba4831434870553fdd451 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 4 Apr 2005 09:54:52 +0000 Subject: [PATCH] Bugfix --- htdocs/compta/param/pre.inc.php | 17 ++++++++--------- htdocs/compta/pre.inc.php | 6 ++++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/htdocs/compta/param/pre.inc.php b/htdocs/compta/param/pre.inc.php index d8ec1621b06..73cedeeefbd 100644 --- a/htdocs/compta/param/pre.inc.php +++ b/htdocs/compta/param/pre.inc.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2005 Rodolphe Quiedeville * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -21,19 +21,19 @@ * */ -/** \file htdocs/compta/param/pre.inc.php - \ingroup compta - \brief Fichier gestionnaire du menu paramétrage de la compta +/** + \file htdocs/compta/param/pre.inc.php + \ingroup compta + \brief Fichier gestionnaire du menu paramétrage de la compta + */ require("../../main.inc.php"); function llxHeader($head = "", $title="", $help_url='') { - global $user, $conf, $langs; - - $user->getrights('banque'); - + global $langs; + top_menu($head, $title); $menu = new Menu(); @@ -42,7 +42,6 @@ function llxHeader($head = "", $title="", $help_url='') $menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/liste.php","Comptes généraux"); - left_menu($menu->liste, $help_url); } diff --git a/htdocs/compta/pre.inc.php b/htdocs/compta/pre.inc.php index 1d7b200c21c..92f6afae04c 100644 --- a/htdocs/compta/pre.inc.php +++ b/htdocs/compta/pre.inc.php @@ -116,8 +116,10 @@ function llxHeader($head = "", $title="", $help_url='') $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation")); - if ($user->rights->compta->ventilation->param) - $menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param")); + if ($user->rights->compta->ventilation->parametrer) + { + $menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param")); + } left_menu($menu->liste, $help_url);