From d60d1c69201710915d153ad16915c87c85d427d5 Mon Sep 17 00:00:00 2001 From: Matt Lebofsky Date: Wed, 27 Sep 2006 16:58:59 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11205 --- html/user/forum_post.php | 2 +- html/user/forum_reply.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/user/forum_post.php b/html/user/forum_post.php index e68a2f9135..cb99ab0aff 100644 --- a/html/user/forum_post.php +++ b/html/user/forum_post.php @@ -18,7 +18,7 @@ check_banished($logged_in_user); $forumid = get_int("id"); $forum = new Forum($forumid); -if ($logged_in_user->getTotalCredit()<$forum->getPostMinTotalCredit || $logged_in_user->getExpavgCredit()<$forum->getPostMinExpavgCredit()){ +if (!$logged_in_user->isSpecialUser(S_MODERATOR) && ($logged_in_user->getTotalCredit()<$forum->getPostMinTotalCredit() || $logged_in_user->getExpavgCredit()<$forum->getPostMinExpavgCredit())) { //If user haven't got enough credit (according to forum regulations) //We do not tell the (ab)user how much this is - no need to make it easy for them to break the system. error_page(sprintf(tr(FORUM_ERR_EXPAVG),$forum->getTitle())); diff --git a/html/user/forum_reply.php b/html/user/forum_reply.php index d45c4d03e5..199aa079ab 100644 --- a/html/user/forum_reply.php +++ b/html/user/forum_reply.php @@ -36,7 +36,7 @@ if ($thread->isHidden()) { "This thread has been hidden for administrative purposes."); } -if ($logged_in_user->getTotalCredit()<$forum->getPostMinTotalCredit() || $logged_in_user->getExpavgCredit()<$forum->getPostMinExpavgCredit()){ +if (!$logged_in_user->isSpecialUser(S_MODERATOR) && ($logged_in_user->getTotalCredit()<$forum->getPostMinTotalCredit() || $logged_in_user->getExpavgCredit()<$forum->getPostMinExpavgCredit())) { //If user haven't got enough credit (according to forum regulations) //We do not tell the (ab)user how much this is - no need to make it easy for them to break the system. error_page(