From fbddce81141d1d7a711670bb46d02ba571c3423f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 5 Sep 2005 08:54:52 +0000 Subject: [PATCH] Ajout permissions sur actions --- htdocs/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/index.php b/htdocs/index.php index 3e6a93c39e3..001ef0c7dbd 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -200,8 +200,13 @@ print ''; $var=true; + +// +// Ne pas inclure de sections sans gestion de permissions +// + // Nbre actions à faire (en retard) -if ($conf->commercial->enabled || $conf->compta->enabled) +if (($conf->commercial->enabled || $conf->compta->enabled) && $user->rights->actions->lire) { include_once("./actioncomm.class.php"); $board=new ActionComm($db);