]> git.openstreetmap.org Git - osqa.git/commitdiff
Commit for OSQA Jira 501. Minor change in syntax of Akismet can_bypass_spam_check...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sat, 1 Jan 2011 20:38:01 +0000 (20:38 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sat, 1 Jan 2011 20:38:01 +0000 (20:38 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@661 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum_modules/akismet/startup.py

index 159efe17663b9172aa7ae99d4d007ee94eccbed1..595447c30274ea2519651ead38955493859b138c 100644 (file)
@@ -13,8 +13,7 @@ from forum.models.user import User
 import settings
 
 def can_bypass_spam_check(user):
-    return user.is_authenticated() and (user.is_superuser or user.is_staff or cmp(user.reputation, REP_FOR_NO_SPAM_CHECK
-                                                                                  ) > 0)
+    return user.is_authenticated and (user.is_superuser or user.is_staff or cmp(int(user.reputation), REP_FOR_NO_SPAM_CHECK) > 0)
 
 
 def check_spam(param, comment_type):