HomePhabricator

Remove upload rights on wikis where local uploads are disabled

Description

Remove upload rights on wikis where local uploads are disabled

This patch attempts to work as commonsuploads.dblist, that is:
on wikis where we want to fully disable local uploads, we can add the
dbname of the wiki to uploadsdisabled.dblist. This will be imported to
InitialiseSettings.php via CommonSettings.php and will:

1.- Modifies the "upload" link on the wiki sidebar to the uploadwizard
on commons, and will display on $lang.

2.- Remove from users, autoconfirmed, confirmed and sysops the upload
rights.

3.- Fully disable local uploads.

This way, we will just have to add a wiki to this list, instead of
having to make several changes on the wiki config.

Bug: T143789
Change-Id: Ie08c4cd9e1243df5cecab4a409d623f8d71caffe