diff --git a/docs/changelog.rst b/docs/changelog.rst --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -20,6 +20,7 @@ fixes - 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**) ---------------------- diff --git a/rhodecode/model/forms.py b/rhodecode/model/forms.py --- a/rhodecode/model/forms.py +++ b/rhodecode/model/forms.py @@ -487,7 +487,7 @@ def UniqSystemEmail(old_data): 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(