Ajout visu si un utilisateur est dsactiv
This commit is contained in:
parent
41e41d70a1
commit
eefa82570e
@ -63,4 +63,6 @@ UsersToAdd=Users to add to this group
|
||||
GroupsToAdd=Groups to add to this user
|
||||
NoLogin=No login
|
||||
CreateDolibarrLogin=Create Dolibarr account
|
||||
TasksHistoryForThisContact=Tasks history for this contact
|
||||
TasksHistoryForThisContact=Tasks history for this contact
|
||||
LoginAccountDisable=Account disable, put a new login to activate it.
|
||||
ErrorFailedToSaveFile=Error - Failed to save file
|
||||
@ -64,3 +64,5 @@ GroupsToAdd=Groupes
|
||||
NoLogin=Pas de login
|
||||
CreateDolibarrLogin=Créer un compte Dolibarr
|
||||
TasksHistoryForThisContact=Historique des actions pour ce contact
|
||||
LoginAccountDisable=Le compte est désactivé, mettre un nouveau login pour l'activer.
|
||||
ErrorFailedToSaveFile=Erreur - l'enregistrement du fichier a échoué
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
* Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||
* Copyright (C) 2005 Regis Houssin <regis.houssin@cap-networks.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -399,7 +400,13 @@ else
|
||||
print "</tr>\n";
|
||||
|
||||
print '<tr><td width="25%" valign="top">'.$langs->trans("Login").'</td>';
|
||||
print '<td width="50%" class="valeur">'.$fuser->login.'</td></tr>';
|
||||
if ($fuser->login)
|
||||
{
|
||||
print '<td width="50%" class="valeur">'.$fuser->login.'</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="50%" class="error">'.$langs->trans("LoginAccountDisable").'</td></tr>';
|
||||
|
||||
print '<tr><td width="25%" valign="top">'.$langs->trans("EMail").'</td>';
|
||||
print '<td width="50%" class="valeur"><a href="mailto:'.$fuser->email.'">'.$fuser->email.'</a></td>';
|
||||
@ -471,17 +478,17 @@ else
|
||||
print '<a class="butAction" href="fiche.php?id='.$fuser->id.'&action=edit">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
|
||||
if ($user->id == $_GET["id"] or $user->admin)
|
||||
if ($user->id == $_GET["id"] or $user->admin && $fuser->login)
|
||||
{
|
||||
print '<a class="butAction" href="fiche.php?id='.$fuser->id.'&action=password">'.$langs->trans("ReinitPassword").'</a>';
|
||||
}
|
||||
|
||||
if (($user->id == $_GET["id"] or $user->admin) && $fuser->email)
|
||||
if (($user->id == $_GET["id"] or $user->admin) && $fuser->email && $fuser->login)
|
||||
{
|
||||
print '<a class="butAction" href="fiche.php?id='.$fuser->id.'&action=passwordsend">'.$langs->trans("SendNewPassword").'</a>';
|
||||
}
|
||||
|
||||
if ($user->id <> $_GET["id"] && $user->admin)
|
||||
if ($user->id <> $_GET["id"] && $user->admin && $fuser->login)
|
||||
{
|
||||
print '<a class="butActionDelete" href="fiche.php?action=disable&id='.$fuser->id.'">'.$langs->trans("DisableUser").'</a>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user