From e5e5de37eb43fbdbe45394d220fead223047fd5b Mon Sep 17 00:00:00 2001 From: jordan Date: Sat, 1 Jan 2011 20:38:01 +0000 Subject: [PATCH] Commit for OSQA Jira 501. Minor change in syntax of Akismet can_bypass_spam_check function. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@661 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum_modules/akismet/startup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/forum_modules/akismet/startup.py b/forum_modules/akismet/startup.py index 159efe1..595447c 100644 --- a/forum_modules/akismet/startup.py +++ b/forum_modules/akismet/startup.py @@ -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): -- 2.39.5