# HG changeset patch # User Marcin Kuzminski # Date 2012-02-29 15:39:07 # Node ID 98f9128328118d775b315b73709883d66e003751 # Parent 8330d5778ba30acd7e714cbecba4a53e8eb6483c fixes #376 Cannot edit user (using container auth) 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(