changeset 2072:98f912832811 beta

fixes #376 Cannot edit user (using container auth)
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 29 Feb 2012 16:39:07 +0200
parents 8330d5778ba3
children 3aae2f18e5ab
files docs/changelog.rst rhodecode/model/forms.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/docs/changelog.rst	Wed Feb 29 03:48:29 2012 +0200
+++ b/docs/changelog.rst	Wed Feb 29 16:39:07 2012 +0200
@@ -20,6 +20,7 @@
 - fixed some python2.5 compatibility issues 
 - fixed issues with removed repos was accidentally added as groups, after
   full rescan of paths
+- fixes #376 Cannot edit user (using container auth)
 
 1.3.2 (**2012-02-28**)
 ----------------------
--- a/rhodecode/model/forms.py	Wed Feb 29 03:48:29 2012 +0200
+++ b/rhodecode/model/forms.py	Wed Feb 29 16:39:07 2012 +0200
@@ -487,7 +487,7 @@
     class _UniqSystemEmail(formencode.validators.FancyValidator):
         def to_python(self, value, state):
             value = value.lower()
-            if old_data.get('email', '').lower() != value:
+            if (old_data.get('email') or '').lower() != value:
                 user = User.get_by_email(value, case_insensitive=True)
                 if user:
                     raise formencode.Invalid(