Update security.lib.php

This commit is contained in:
javieralapps4up 2021-10-21 18:20:06 +02:00 committed by GitHub
parent 5d854dcce1
commit f50dfe8571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,7 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
continue; // User can edit its own password
}
if ($subfeature == 'user' && $user->id != $objectid && $user->rights->user->user->password) {
continue; // User can edit its own password
continue; // User can edit another user's password
}
if (empty($user->rights->$feature->$subfeature->creer)