From 79eac4f419dbada12094a618e3f183686f6e9b44 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 16 Nov 2003 17:40:12 +0000 Subject: [PATCH] fixed bug [ 838091 ] Read-Only Forum User Cannot Subscribe --- docs/changelog/5.x.x.txt | 3 ++- lib/WebGUI/Forum/UI.pm | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index 3ac10714d..4439a51fb 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -20,7 +20,8 @@ - Fixed bug [ 831331 ] translation errors - Fixed bug [ 834792 ] Karma Decay triggers SQL error - Fixed bug [ 832284 ] Pagination broken in Messageboard with Search - + - Fixed bug [ 838091 ] Read-Only Forum User Cannot Subscribe + 5.5.0 - Rewrote the discussion system and added many new features in the process. diff --git a/lib/WebGUI/Forum/UI.pm b/lib/WebGUI/Forum/UI.pm index a007fde1f..044783e65 100644 --- a/lib/WebGUI/Forum/UI.pm +++ b/lib/WebGUI/Forum/UI.pm @@ -1677,7 +1677,7 @@ A hash reference containing information passed from the calling object. sub www_forumSubscribe { my ($caller) = @_; my $forum = WebGUI::Forum->new($session{form}{forumId}); - return WebGUI::Privilege::insufficient() unless ($forum->canPost && $session{user}{userId} != 1); + return WebGUI::Privilege::insufficient() unless ($session{user}{userId} != 1); $forum->subscribe; return www_viewForum($caller, $session{form}{forumId}); } @@ -2152,7 +2152,7 @@ A hash reference containing information passed from the calling object. sub www_threadSubscribe { my ($caller) = @_; my $post = WebGUI::Forum::Post->new($session{form}{forumPostId}); - return WebGUI::Privilege::insufficient() unless ($session{user}{userId} != 1 && $post->getThread->getForum->canPost); + return WebGUI::Privilege::insufficient() unless ($session{user}{userId} != 1); $post->getThread->subscribe; return www_viewThread($caller, $session{form}{forumPostId}); }