Changeset - 7e9494f4c4bf
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 12 years ago 2013-06-11 14:28:05
marcin@python-works.com
fixed issue with ldap disabling after initially enabling it
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/admin/ldap_settings.py
Show inline comments
 
@@ -115,7 +115,7 @@ class LdapSettingsController(BaseControl
 
                for k, v in form_result.items():
 
                    if k.startswith('ldap_'):
 
                        if k == 'ldap_active':
 
                            v = ldap_active
 
                            v = v if ldap_active else False
 
                        setting = RhodeCodeSetting.get_by_name(k)
 
                        setting.app_settings_value = v
 
                        Session().add(setting)
 
@@ -125,8 +125,8 @@ class LdapSettingsController(BaseControl
 
                        category='success')
 
                if not ldap_active:
 
                    #if ldap is missing send an info to user
 
                    h.flash(_('Unable to activate ldap. The "python-ldap" library '
 
                              'is missing.'), category='warning')
 
                    h.flash(_('Unable to activate ldap. The "python-ldap" '
 
                              'library is missing.'), category='warning')
 

	
 
            except (DatabaseError,):
 
                raise
0 comments (0 inline, 0 general)