Only deny use of contact form if sending e-mail is blocked instead of blocking it when the user is blocked from regular editing.

Follows-up r71882 code review comments.
This commit is contained in:
Siebrand Mazeland 2010-08-30 06:57:21 +00:00
parent d081f27f85
commit 4bb9092c87
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class SpecialContact extends SpecialPage {
}
// Blocked users cannot use the contact form.
if ( $wgUser->isBlocked() ) {
if ( $wgUser->isAllowed( 'sendemail' ) ) {
$wgOut->setPageTitle( wfMsg( 'blockedtitle' ) );
$wgOut->setRobotPolicy( 'noindex,nofollow' );
$wgOut->setArticleRelated( false );