Skip to content

Commit 46d62ad

Browse files
authored
Fix direct creation of external users on admin page (#16613)
From #16612 it was noticed that when creating new external users directly it was not possible to set their username correctly. This PR restores this ability. Signed-off-by: Andrew Thornton <[email protected]>
1 parent 428d58f commit 46d62ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web_src/js/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,9 @@ function initAdmin() {
19841984
$('#password').attr('required', 'required');
19851985
}
19861986
} else {
1987-
$('#user_name').attr('disabled', 'disabled');
1987+
if ($('.admin.edit.user').length > 0) {
1988+
$('#user_name').attr('disabled', 'disabled');
1989+
}
19881990
$('#login_name').attr('required', 'required');
19891991
$('.non-local').show();
19901992
$('.local').hide();

0 commit comments

Comments
 (0)