Page MenuHomePhabricator

Allow disabling of create protection
Closed, ResolvedPublic

Description

After fix of bug 26574 I have notice, that the create protection is also not in $wgRestrictionTypes, so it is not possible to disable create protection on a wiki.

This can be more complex, because create protection is listed on Special:ProtectedTitles, not Special:ProtectedPages, the api listed this with list=protectedtitles and not with list=allpages&apprtype=, due to seperated database table.

It is possible to disable create protection?

Thanks.


Version: 1.18.x
Severity: enhancement

Details

Reference
bz26607

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:14 PM
bzimport set Reference to bz26607.
bzimport added a subscriber: Unknown Object (MLST).

Create protection is not in $wgRestrictionTypes because it's a different beast. Unlike edit, move, upload and any custom restriction types, it's not applied to existing pages but to titles. For this reason, its implementation is completely (? at least mostly) separate from other protection types.

Making it disableable is a legitimate feature request, but it should not be done through $wgRestrictionTypes.

'create' is inside $wgRestrictionTypes since r82853, need testing

Works, but action=protect makes no check, if there are anything to protect, but that is the same, when removing "edit" and "move" from the $wgRestrictionTypes. The Tab "protect" is also there, when there is nothing to protect, but that is not a problem.