Update of /cvsroot/phpwsbb/phpwsbb/class
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24318
Modified Files:
Message.php
Log Message:
RFE # [ 1044661 ] Posting to a locked thread
Index: Message.php
===================================================================
RCS file: /cvsroot/phpwsbb/phpwsbb/class/Message.php,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** Message.php 1 Mar 2006 14:48:33 -0000 1.88
--- Message.php 1 Mar 2006 18:14:52 -0000 1.89
***************
*** 263,267 ****
// Need to see if thread is locked
$thread = new PHPWSBB_Thread($this->_tid);
! if ($thread->_locked) {
$message = '<div class="errortext">' . $_SESSION['translate']->it('This thread has been locked.') . '</div>';
$GLOBALS['CNT_phpwsbb']['content'] .= $message;
--- 263,267 ----
// Need to see if thread is locked
$thread = new PHPWSBB_Thread($this->_tid);
! if ($thread->_locked && !$_SESSION['OBJ_user']->allow_access('phpwsbb', 'edit_messages') && !$this->isModerator) {
$message = '<div class="errortext">' . $_SESSION['translate']->it('This thread has been locked.') . '</div>';
$GLOBALS['CNT_phpwsbb']['content'] .= $message;
|