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);