diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-28 18:03:13 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-28 18:03:13 -0300 |
commit | 6e4f4482853fd20f8f8301e96174da77c528e415 (patch) | |
tree | 5b1b297ad4d078ab4edd04487606bbd8c2307862 /askbot/mail | |
parent | 980989b786c77ef2a7a23e23545c402e1b072591 (diff) | |
download | askbot-6e4f4482853fd20f8f8301e96174da77c528e415.tar.gz askbot-6e4f4482853fd20f8f8301e96174da77c528e415.tar.bz2 askbot-6e4f4482853fd20f8f8301e96174da77c528e415.zip |
undone the first implementation of limiting the link insertion
Diffstat (limited to 'askbot/mail')
-rw-r--r-- | askbot/mail/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/mail/__init__.py b/askbot/mail/__init__.py index c8ec130e..74aa27e9 100644 --- a/askbot/mail/__init__.py +++ b/askbot/mail/__init__.py @@ -362,10 +362,10 @@ def process_emailed_question( 'subject': subject, 'body_text': body_text } - user = User.objects.get(email__iexact = email_address) - form = AskByEmailForm(data, user=user) + form = AskByEmailForm(data) if form.is_valid(): email_address = form.cleaned_data['email'] + user = User.objects.get(email__iexact = email_address) if user.can_post_by_email() is False: raise PermissionDenied(messages.insufficient_reputation(user)) |