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