From e946c8e5854bdc097f79382f4ac433d692b89955 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 16 May 2007 12:03:55 +0000 Subject: [PATCH] Fix: Pb droits --- htdocs/user/group/fiche.php | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/htdocs/user/group/fiche.php b/htdocs/user/group/fiche.php index 68497a383f3..e310b5ec74b 100644 --- a/htdocs/user/group/fiche.php +++ b/htdocs/user/group/fiche.php @@ -197,9 +197,6 @@ if ($action == 'create') /* ************************************************************************** */ else { - - if ($message) { print $message."
"; } - if ($_GET["id"] ) { $group = new UserGroup($db); @@ -227,7 +224,7 @@ else * Fiche en mode visu */ - if ($_GET["action"] != 'edit') + if ($action != 'edit') { print ''; @@ -244,11 +241,8 @@ else print ''; - if ($message) { print $message; } - /* * Barre d'actions - * */ print '
'; @@ -265,6 +259,9 @@ else print "
\n"; print "
\n"; + + if ($message) { print $message."
"; } + /* * Liste des utilisateurs dans le groupe @@ -300,7 +297,7 @@ else dolibarr_print_error($db); } - if ($user->admin) + if ($caneditperms) { $form = new Form($db); print ''."\n"; @@ -314,6 +311,7 @@ else print ''; print ''."\n"; print '
'."\n"; + print '
'; } /* @@ -332,8 +330,6 @@ else $num = $db->num_rows($result); $i = 0; - print '
'; - print ''; print ''; print ''; @@ -387,7 +383,7 @@ else /* * Fiche en mode edition */ - if ($_GET["action"] == 'edit' && $user->admin) + if ($_GET["action"] == 'edit' && $caneditperms) { print ''; print '';
'.$langs->trans("Login").'