#10998 fixed acl edit my user
This commit is contained in:
parent
db2b2b796b
commit
e1f995744b
|
@ -57,6 +57,11 @@ if ($enterprise_include === true) {
|
|||
// This defines the working user. Beware with this, old code get confusses
|
||||
// and operates with current logged user (dangerous).
|
||||
$id = get_parameter('id', get_parameter('id_user', ''));
|
||||
|
||||
if (empty($id) === true) {
|
||||
$id = $config['id_user'];
|
||||
}
|
||||
|
||||
// Check if we are the same user for edit or we have a proper profile for edit users.
|
||||
if ($id !== $config['id_user']) {
|
||||
if ((bool) check_acl($config['id_user'], 0, 'UM') === false) {
|
||||
|
|
|
@ -637,7 +637,7 @@ $menu_operation['workspace']['id'] = 'oper-users';
|
|||
|
||||
// ANY user can view him/herself !
|
||||
// Users.
|
||||
$query_paramameters_user = '&edit_user=1&pure=0&id_user='.$config['id_user'];
|
||||
$query_paramameters_user = '&edit_user=1&pure=0';
|
||||
|
||||
$sub = [];
|
||||
$sub['godmode/users/configure_user'.$query_paramameters_user]['text'] = __('Edit my user');
|
||||
|
|
Loading…
Reference in New Issue