summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-12-04 14:01:31 +0100
committerMorris Jobke <morris.jobke@gmail.com>2013-12-04 17:57:47 +0100
commit430f85cc59ec8cbd229748d678c6da0f2de337eb (patch)
tree9c32d9711e94b7cd672de247e77551328a6c06d4 /apps/user_ldap/js
parent1c6568cf687b395ce67a5bbea0e0c87bbe8fb41e (diff)
downloadnextcloud-server-430f85cc59ec8cbd229748d678c6da0f2de337eb.tar.gz
nextcloud-server-430f85cc59ec8cbd229748d678c6da0f2de337eb.zip
LDAP Wizard: avoid a manually deactivated LDAP configuration is enabled by just opening the admin page
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r--apps/user_ldap/js/settings.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js
index 5b5f2030635..801de12ea94 100644
--- a/apps/user_ldap/js/settings.js
+++ b/apps/user_ldap/js/settings.js
@@ -489,13 +489,17 @@ var LdapWizard = {
loginfilter = $('#ldap_login_filter').val();
//FIXME: activates a manually deactivated configuration.
- if(host && port && base && userfilter && loginfilter) {
+ if(host && port && base && userfilter && loginfilter) {
LdapWizard.updateStatusIndicator(true);
if($('#ldap_configuration_active').is(':checked')) {
return;
}
- $('#ldap_configuration_active').prop('checked', true);
- LdapWizard.save($('#ldap_configuration_active')[0]);
+ if(!LdapWizard.isConfigurationActiveControlLocked) {
+ //avoids a manually deactivated connection will be activated
+ //upon opening the admin page
+ $('#ldap_configuration_active').prop('checked', true);
+ LdapWizard.save($('#ldap_configuration_active')[0]);
+ }
} else {
if($('#ldap_configuration_active').is(':checked')) {
$('#ldap_configuration_active').prop('checked', false);
@@ -517,9 +521,12 @@ var LdapWizard = {
$(id + " + button").css('display', 'inline');
},
+ isConfigurationActiveControlLocked: true,
+
init: function() {
LdapWizard.basicStatusCheck();
LdapWizard.functionalityCheck();
+ LdapWizard.isConfigurationActiveControlLocked = false;
},
initGroupFilter: function() {