diff --git a/htdocs/comm/fiche.php3 b/htdocs/comm/fiche.php3 index b305759d206..54165dd089c 100644 --- a/htdocs/comm/fiche.php3 +++ b/htdocs/comm/fiche.php3 @@ -25,10 +25,10 @@ require("../lib/webcal.class.php3"); require("../cactioncomm.class.php3"); require("../actioncomm.class.php3"); - llxHeader(); - -$db = new Db(); +$user->getrights('propale'); +$user->getrights('projet'); +//$db = new Db(); if ($sortorder == "") { $sortorder="ASC"; @@ -150,10 +150,12 @@ if ($socid > 0) { print "idp\">Compta"; print "idp\">Documents"; print "idp&action=add_bookmark\">[Bookmark]"; - print "idp&action=create\">[Projet]"; + if ($user->rights->projet->creer) + print "idp&action=create\">[Projet]"; if (defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE) { - print "idp&action=create\">[Propal]"; + if ($user->rights->propale->creer) + print "idp&action=create\">[Propal]"; } if (defined("MAIN_MODULE_FICHEINTER") && MAIN_MODULE_FICHEINTER) {