Add $wgCascadingRestrictionLevels
authorMatmaRex <matma.rex@gmail.com>
Wed, 24 Apr 2013 19:16:51 +0000 (21:16 +0200)
committerMatmaRex <matma.rex@gmail.com>
Sat, 11 May 2013 22:31:13 +0000 (00:31 +0200)
commit1cbaa921589a1858bbf89221bef36c663f7fc7c0
treedfac54286942b1f9da82dae39037882120d5917b
parent181e0f3ff7e4d8d64085a3388cba723ca60497f9
Add $wgCascadingRestrictionLevels

A page can only be protected with cascading protection if the
requested restriction level is included in this array.

This replaces previously hard-coded values of 'sysop' and 'protect'.

This is necessary, because if any protection could be
cascading, users could who cannot normally protect pages could
"protect" them by transcluding them on protected pages they are
allowed to edit.

Bug: 47617
Change-Id: I5f8bcc899b46d466161894606cd27bf3b8624bd0
RELEASE-NOTES-1.22
includes/DefaultSettings.php
includes/ProtectionForm.php
includes/WikiPage.php