wip: pull request feedback

This commit is contained in:
Steve 2022-02-23 11:13:31 +01:00
parent c26b1e58a2
commit 9a95fc7a00

View File

@ -1852,9 +1852,9 @@ if ($action == 'create' || $action == 'adduserldap') {
if (!empty($conf->global->MAIN_ONLY_LOGIN_ALLOWED)) {
$params['attr']['title'] = $langs->trans('DisabledInMonoUserMode');
print dolGetButtonAction($langs->trans('Modify'), '', 'default', $_SERVER['PHP_SELF'].'#', '', false, $params);
} else {
} else {
print dolGetButtonAction($langs->trans('Modify'), '', 'default', $_SERVER['PHP_SELF'].'?id='.$object->id.'&action=edit&token='.newToken(), '', true, $params);
}
}
} elseif ($caneditpassword && !$object->ldap_sid &&
(empty($conf->multicompany->enabled) || !$user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1))) {
$params = array(