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:
parent
d081f27f85
commit
4bb9092c87
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue