--- loncom/interface/lonfeedback.pm 2010/09/21 04:18:50 1.302 +++ loncom/interface/lonfeedback.pm 2010/11/19 20:32:38 1.303 @@ -1,7 +1,7 @@ # The LearningOnline Network # Feedback # -# $Id: lonfeedback.pm,v 1.302 2010/09/21 04:18:50 raeburn Exp $ +# $Id: lonfeedback.pm,v 1.303 2010/11/19 20:32:38 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -732,12 +732,23 @@ END $group,$crstype); } } else { - $discussion.= - &postingform_display($mode,$ressymb,$now,$subject, - $comment,$outputtarget,$attachnum, - $currnewattach,$currdelold,'',$crstype); + if (&Apache::lonnet::allowed('pch',$env{'request.course.id'}. + ($env{'request.course.sec'}?'/'.$env{'request.course.sec'}:''))) { + + $discussion.= + &postingform_display($mode,$ressymb,$now,$subject, + $comment,$outputtarget,$attachnum, + $currnewattach,$currdelold,'',$crstype); + } else { + $discussion.= ''. + &mt('This discussion is closed.').''; + } } } + if (!(&discussion_open($status)) && ($outputtarget ne 'tex')) { + $discussion.= ''. + &mt('This discussion is closed.').''; + } } elsif ($outputtarget ne 'tex') { $discussion.='