This commit is contained in:
Rodolphe Quiedeville 2005-04-04 09:54:52 +00:00
parent 95c3d990cf
commit f81323d56d
2 changed files with 12 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2005 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
@ -21,18 +21,18 @@
* *
*/ */
/** \file htdocs/compta/param/pre.inc.php /**
\file htdocs/compta/param/pre.inc.php
\ingroup compta \ingroup compta
\brief Fichier gestionnaire du menu paramétrage de la compta \brief Fichier gestionnaire du menu paramétrage de la compta
*/ */
require("../../main.inc.php"); require("../../main.inc.php");
function llxHeader($head = "", $title="", $help_url='') function llxHeader($head = "", $title="", $help_url='')
{ {
global $user, $conf, $langs; global $langs;
$user->getrights('banque');
top_menu($head, $title); top_menu($head, $title);
@ -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"); $menu->add_submenu(DOL_URL_ROOT."/compta/param/comptes/liste.php","Comptes généraux");
left_menu($menu->liste, $help_url); left_menu($menu->liste, $help_url);
} }

View File

@ -116,8 +116,10 @@ function llxHeader($head = "", $title="", $help_url='')
$menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation")); $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
if ($user->rights->compta->ventilation->param) if ($user->rights->compta->ventilation->parametrer)
{
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param")); $menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
}
left_menu($menu->liste, $help_url); left_menu($menu->liste, $help_url);