diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index 746fc434d33..047d0fc714c 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -32,7 +32,7 @@ if ($conf->propal->enabled) require_once(DOL_DOCUMENT_ROOT."/propal.class.php") require_once(DOL_DOCUMENT_ROOT."/actioncomm.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/agenda.lib.php"); -if (!$user->rights->commercial->main->lire) +if (!$user->rights->societe->lire) accessforbidden(); $langs->load("commercial"); @@ -113,7 +113,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire) /* * Recherche Contrat */ -if ($conf->contrat->enabled) +if ($conf->contrat->enabled && $user->rights->contrat->lire) { $var=false; print '