FIX #19064
Access forbidden when the password of other users is changed Steps to reproduce the behavior User with lire and password (user) perms, but no creer. When this user saves or cancels the edition of the password of another user, he is sent to the prohibited page
This commit is contained in:
parent
d264bbca3c
commit
5d854dcce1
@ -417,6 +417,9 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
|
||||
if ($subfeature == 'user' && $user->id == $objectid && $user->rights->user->self->password) {
|
||||
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
|
||||
}
|
||||
|
||||
if (empty($user->rights->$feature->$subfeature->creer)
|
||||
&& empty($user->rights->$feature->$subfeature->write)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user