From 6aa4c2166bb92c2be48c9fd45eab77617d66854a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 20 Feb 2007 16:08:01 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Permissions=20non=20test=E9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/adherents/type.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index 9cf9cb165b3..d3ef9b1348e 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -171,7 +171,11 @@ if (! $rowid && $_GET["action"] != 'create' && $_GET["action"] != 'edit') */ print '
'; - print "".$langs->trans("NewType").""; + // New type + if ($user->rights->adherent->configurer) + { + print "".$langs->trans("NewType").""; + } print "
"; @@ -276,8 +280,13 @@ if ($rowid > 0) */ print '
'; - print "id."\">".$langs->trans("Edit").""; - + // Edit + if ($user->rights->adherent->configurer) + { + print "id."\">".$langs->trans("Edit").""; + } + + // Add member print "id."\">".$langs->trans("AddMember").""; print "
";