From fb09d5b6fd8d9a26c70d3c43788a26258d4a812e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 6 Aug 2003 11:19:12 +0000 Subject: [PATCH] Ajout droits --- htdocs/comm/fiche.php3 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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) {