Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -419,13 +419,13 @@ |
420 | 420 | } |
421 | 421 | |
422 | 422 | protected function commentReplyLink( $id ) { |
| 423 | + global $wgUser; |
| 424 | + if( !$wgUser->isAllowed('codereview-post-comment') ) return ''; |
423 | 425 | $repo = $this->mRepo->getName(); |
424 | 426 | $rev = $this->mRev->getId(); |
425 | 427 | $self = SpecialPage::getTitleFor( 'Code', "$repo/$rev/reply/$id" ); |
426 | 428 | $self->setFragment( "#c$id" ); |
427 | | - return '[' . |
428 | | - $this->mSkin->link( $self, wfMsg( 'codereview-reply-link' ) ) . |
429 | | - ']'; |
| 429 | + return '[' . $this->mSkin->link( $self, wfMsg( 'codereview-reply-link' ) ) . ']'; |
430 | 430 | } |
431 | 431 | |
432 | 432 | protected function postCommentForm( $parent=null ) { |