Commits

Marcin Kuzminski committed 98f9128

fixes #376 Cannot edit user (using container auth)

Comments (0)

Files changed (2)

docs/changelog.rst

 - 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**)
 ----------------------

rhodecode/model/forms.py

     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(