From: Aaron Schulz Date: Mon, 21 Jan 2008 19:47:51 +0000 (+0000) Subject: Disallow uploads to protected titles (bug 12727) X-Git-Tag: 1.31.0-rc.0~49859 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=190811dec2d99816b433bbace72ed208659476ca;p=lhc%2Fweb%2Fwiklou.git Disallow uploads to protected titles (bug 12727) --- diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 76f926fbf2..657a1a5d8e 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -435,7 +435,7 @@ class UploadForm { * If the image is protected, non-sysop users won't be able * to modify it by uploading a new revision. */ - if( !$nt->userCan( 'edit' ) ) { + if( !$nt->userCan( 'edit' ) || !$nt->userCan( 'create' ) ) { return self::PROTECTED_PAGE; }