'X not in Y'

This commit is contained in:
Gil Forcada 2015-05-03 08:56:58 +02:00
parent dcb2a5f51b
commit 7c8a1371ee

View File

@ -150,7 +150,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
anonymous_comments = settings.anonymous_comments
anon = portal_membership.isAnonymousUser()
if captcha_enabled and anonymous_comments and anon:
if not 'captcha' in data:
if 'captcha' not in data:
data['captcha'] = u""
captcha = CaptchaValidator(self.context,
self.request,