Ajout d'un test pour que l'utilisateur ne puisse changer que son mot de passe
This commit is contained in:
parent
3815c2157b
commit
f1b969979d
@ -213,7 +213,14 @@ else
|
||||
|
||||
print '<td width="25%" align="center">-</td>';
|
||||
|
||||
print '<td width="25%" align="center">[<a href="fiche.php3?action=password&id='.$id.'">Nouveau mot de passe</a>]</td>';
|
||||
if ($user->id == $id)
|
||||
{
|
||||
print '<td width="25%" align="center">[<a href="fiche.php3?action=password&id='.$id.'">Nouveau mot de passe</a>]</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="25%" align="center">-</td>';
|
||||
}
|
||||
print '<td width="25%" align="center">-</td>';
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user