Split editcascadeprotected permission from protect permission
authorMGChecker <hgasuser@gmail.com>
Tue, 3 May 2016 17:07:53 +0000 (19:07 +0200)
committerMGChecker <hgasuser@gmail.com>
Tue, 3 May 2016 19:26:26 +0000 (21:26 +0200)
commitda3464badaf9c067a4c3d98448ca72a8324e1e19
treea019493e604e26f0750d27869bc6f63a3d89c3ae
parentb3b2214a718e737d4921536c33922295d451341f
Split editcascadeprotected permission from protect permission

Currently, both permissions are summarised in the protect permission. This is
unadvantageous for wikis that want to split this permission, for example for the
main page: They don't want protection changes by non-sysop users there, but on
transcluded pages some less privileged users are allowed to edit. Currently,
it is impossible to divide these permissions in a clean way (they can add a hack
depnding on action parameter in LocalSettings.php right now). Furthermore, an
additional permission is no pain, because by default it is handled the same as
protect until now.

Note that for sakes of backwards compability I decided to handle editcascadeprotected
as a subset of protect instead of removing all permissions to edit cascadeprotected
pages (and change the cascade protection state of a page) for users who only have got
the protect permission. Furthermore a different model would raise some strange questions
about the behaivour of the protection form for users with protect, but no editcascadeprotected.

Bug: T101309
Change-Id: I0734d6c26e75d7d7c01cf9750ad0315dd2c85bef
includes/DefaultSettings.php
includes/Title.php
includes/user/User.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/TitlePermissionTest.php