Ajout test de permission sur les mailings

This commit is contained in:
Rodolphe Quiedeville 2005-04-06 21:11:25 +00:00
parent fce5cdcff5
commit 5f7762ea55

View File

@ -1,5 +1,5 @@
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Éric Seigne <erics@rycks.com>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
@ -121,9 +121,11 @@ function llxHeader($head = "") {
}
}
$langs->trans("mails");
$menu->add(DOL_URL_ROOT."/comm/mailing/index.php",$langs->trans("EMailing"));
if ($user->rights->mailing->lire)
{
$langs->trans("mails");
$menu->add(DOL_URL_ROOT."/comm/mailing/index.php",$langs->trans("EMailing"));
}
if ($conf->telephonie->enabled) // EXPERIMENTAL -> RODO
{