Page MenuHomePhabricator

Add upload protection to $wgRestrictionTypes
Closed, ResolvedPublic

Description

The special page ProtectedPages allow listing of upload protected files only by url manipulation. Please add a entry for upload protection to the drop-down list.

Thanks.

See bug 26573 for the api part.


Version: 1.18.x
Severity: enhancement
URL: http://commons.wikimedia.org/w/index.php?title=Special%3AProtectedPages&namespace=6&type=upload&level=sysop&sizetype=min&size=

Details

Reference
bz26574

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:12 PM
bzimport set Reference to bz26574.

At a first glance it looks easy:

Add 'upload' to $wgRestrictionTypes in DefaultSettings.php.

But this needs special handling for NS6 in a lot of functions like Title::getRestrictionTypes() and some extensions.

Upload protection? I didn't know that even existed. If it does, it should be in $wgRestrictionTypes.

  • Bug 26573 has been marked as a duplicate of this bug. ***

(In reply to comment #2)

Upload protection? I didn't know that even existed. If it does, it should be in
$wgRestrictionTypes.

bug 6579

Bryan.TongMinh wrote:

Let me take blame for this mess :p