diff options
author | Martin Stockhammer <martin_s@apache.org> | 2017-04-14 20:52:12 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2017-04-14 20:52:12 +0200 |
commit | 63154d9d38f57b998649563f7f1520b9e00082ba (patch) | |
tree | fa56b5669cffa3bd1825107acc1cd3424c9c667d /archiva-modules/archiva-web/archiva-webapp | |
parent | 94e8342ec044224226a53efc090ccb4d31d4b94b (diff) | |
download | archiva-63154d9d38f57b998649563f7f1520b9e00082ba.tar.gz archiva-63154d9d38f57b998649563f7f1520b9e00082ba.zip |
[MRM-1937] Prevent creation of wrong initial admin
Disables the name field for the admin user, when the primary admin
is created.
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js index 7464b5d31..4a8f0ccdc 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/redback/user.js @@ -325,6 +325,7 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,purl) { } }); + $("#username").prop('disabled',true); // desactivate roles pill when adding user $("#edit_user_details_pills_headers").hide(); |