##// 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 for k, v in form_result.items():
115 for k, v in form_result.items():
116 if k.startswith('ldap_'):
116 if k.startswith('ldap_'):
117 if k == 'ldap_active':
117 if k == 'ldap_active':
118 v = ldap_active
118 v = v if ldap_active else False
119 setting = RhodeCodeSetting.get_by_name(k)
119 setting = RhodeCodeSetting.get_by_name(k)
120 setting.app_settings_value = v
120 setting.app_settings_value = v
121 Session().add(setting)
121 Session().add(setting)
@@ -125,8 +125,8 b' class LdapSettingsController(BaseControl'
125 category='success')
125 category='success')
126 if not ldap_active:
126 if not ldap_active:
127 #if ldap is missing send an info to user
127 #if ldap is missing send an info to user
128 h.flash(_('Unable to activate ldap. The "python-ldap" library '
128 h.flash(_('Unable to activate ldap. The "python-ldap" '
129 'is missing.'), category='warning')
129 'library is missing.'), category='warning')
130
130
131 except (DatabaseError,):
131 except (DatabaseError,):
132 raise
132 raise
General Comments 0
You need to be logged in to leave comments. Login now