As side effect: this means Special:Upload is now displayed as restricted for users having the "upload" right, dunno if we should have some kind of whitelist for special pages accessible to some defined groups
content's language
* (bug 19479) Show proper error message when unable to connect to PostgreSQL
database with username/password in MediaWiki's setup
+* (bugs 18407, 18409) Special:Upload is now listed on Special:Specialpages only
+ if uploads are enabled and the user can access it
== API changes in 1.16 ==
* @param $request Data posted.
*/
function __construct( $request = null ) {
- parent::__construct( 'Upload' );
+ parent::__construct( 'Upload', 'upload' );
$this->mRequest = $request;
}
$this->mAction = $request->getVal( 'action' );
$this->mUpload = UploadBase::createFromRequest( $request );
}
-
+
+ public function userCanExecute( $user ) {
+ return UploadBase::isEnabled() && parent::userCanExecute( $user );
+ }
+
/**
* Start doing stuff
* @access public