Check for IP blocks on upload
This commit is contained in:
parent
1d62bc05bf
commit
8ee5d70735
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,8 @@ function wfSpecialUpload()
|
|||
$fields = array( "wpUploadFile", "wpUploadDescription" );
|
||||
wfCleanFormFields( $fields );
|
||||
|
||||
if ( 0 == $wgUser->getID() ) {
|
||||
if ( ( 0 == $wgUser->getID() )
|
||||
or $wgUser->isBlocked() ) {
|
||||
$wgOut->errorpage( "uploadnologin", "uploadnologintext" );
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue