mirror of https://github.com/apache/archiva.git
control at least one rbacmanager/usermanager has been choosed
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1448856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8ad0fb9872
commit
08f247644b
|
@ -678,6 +678,9 @@ runtime-configuration.maven.network.title=Maven Network
|
|||
redback.runtime.ldap.mapping.group.label=LDAP Groups
|
||||
redback.runtime.ldap.mapping.roles.label=Roles
|
||||
|
||||
error.redback.runtimeconfiguration.user-managers.empty=You must choose at least one userManager
|
||||
error.redback.runtimeconfiguration.rbac-managers.empty=You must choose at least one rbacManager
|
||||
|
||||
|
||||
#welcome
|
||||
welcome.title=Welcome to Apache Archiva
|
||||
|
|
|
@ -1582,6 +1582,22 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
|
|||
}
|
||||
}
|
||||
|
||||
clearUserMessages();
|
||||
|
||||
if (self.usedUserManagerImpls().length<1){
|
||||
displayErrorMessage( $.i18n.prop("error.redback.runtimeconfiguration.user-managers.empty"));
|
||||
valid=false;
|
||||
}
|
||||
|
||||
if (self.usedRbacManagerImpls().length<1){
|
||||
displayErrorMessage( $.i18n.prop("error.redback.runtimeconfiguration.rbac-managers.empty"));
|
||||
valid=false;
|
||||
}
|
||||
|
||||
if(valid==false){
|
||||
return;
|
||||
}
|
||||
|
||||
$.log("saveRedbackRuntimeConfiguration");
|
||||
var saveButton = mainContent.find("#redback-runtime-configuration-save" );
|
||||
saveButton.button('loading');
|
||||
|
|
Loading…
Reference in New Issue