Merge branch 'ent-10998-15445-problemas-edicion-usuarios-con-acl-enterprise-en-la-nueva-ui' into 'develop'
Ent 10998 15445 problemas edicion usuarios con acl enterprise en la nueva ui See merge request artica/pandorafms!5775
This commit is contained in:
commit
5bd875d005
|
@ -69,6 +69,11 @@ $homeScreenValues = [
|
|||
// 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