HomePhabricator

Remove upload rights on wikis where local uploads are disabled
0284488f2134Unpublished

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: I07071efe23fe69e5d63f7be6b6b79ce72dfbe191

Details

Provenance
MarcoAurelioAuthored on Aug 24 2016, 2:27 PM
ChangeId
I07071efe23fe69e5d63f7be6b6b79ce72dfbe191

Commit No Longer Exists

This commit no longer exists in the repository.