HomePhabricator

Remove upload rights on wikis where local uploads are disabled.
a09e6eda0939Unpublished

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.- Point the "upload" link on the wiki sidebar to the uploadwizard on
commons, and will display on $lang (the wiki's language or the user-set
language).

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

3.- Disable local uploads for anyone else, even in global groups.

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.