FIX avoid php warning

This commit is contained in:
Regis Houssin 2025-01-15 12:09:49 +01:00
parent 46e4663a5a
commit 4d4638c75a

View file

@ -130,6 +130,9 @@ if ($user->id != $id && !$canreaduser) {
accessforbidden();
}
$caneditpasswordandsee = $canadduser;
$caneditpasswordandsend = $canadduser;
// Define value to know what current user can do on properties of edited user
if ($id > 0) {
// $user is the current logged user, $id is the user we want to edit