HomePhabricator

Remove upload rights on wikis where local uploads are disabled
bf157282b344Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

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

Details

Provenance
MarcoAurelioAuthored on Jan 20 2018, 1:10 PM
ChangeId
Ie08c4cd9e1243df5cecab4a409d623f8d71caffe

Commit No Longer Exists

This commit no longer exists in the repository.