##// END OF EJS Templates
fixed issue with ldap disabling after initially enabling it
marcink -
r3973:7e9494f4 default
parent child Browse files
Show More
@@ -115,7 +115,7 b' class LdapSettingsController(BaseControl'
115 115 for k, v in form_result.items():
116 116 if k.startswith('ldap_'):
117 117 if k == 'ldap_active':
118 v = ldap_active
118 v = v if ldap_active else False
119 119 setting = RhodeCodeSetting.get_by_name(k)
120 120 setting.app_settings_value = v
121 121 Session().add(setting)
@@ -125,8 +125,8 b' class LdapSettingsController(BaseControl'
125 125 category='success')
126 126 if not ldap_active:
127 127 #if ldap is missing send an info to user
128 h.flash(_('Unable to activate ldap. The "python-ldap" library '
129 'is missing.'), category='warning')
128 h.flash(_('Unable to activate ldap. The "python-ldap" '
129 'library is missing.'), category='warning')
130 130
131 131 except (DatabaseError,):
132 132 raise
General Comments 0
You need to be logged in to leave comments. Login now