Remove references to non-existent 'execute' right in Title.php
authorBrian Wolff <bawolff+wn@gmail.com>
Fri, 4 Jan 2013 12:02:10 +0000 (08:02 -0400)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 22 Jan 2013 08:13:51 +0000 (09:13 +0100)
commit3896b55a371b64fd546a05df0dc05eef856feb15
treec64bb1aba3b16f3aa5bac194179948daf7998940
parent7dcf4e29e7bf1c4324cfb446113ba4508a6b6af8
Remove references to non-existent 'execute' right in Title.php

The permission checks in Title will automatically fail
any check against a special page, except for read, execute
and createaccount. However, execute is not a right. It
is not mentioned in any other MW file (or extension for
that matter). It is neither in the list of core user
rights in User.php, nor does it have a system msg
If someone wants to check if they can
run a special page, they should be doing a 'read'
check.

Note: The check in question was added in bc23aede55e back in 2008

I'm unsure if it is better to just leave it alone, or remove it.
However, its presence could cause some confusion, hence this
commit. Additionally I was unsure if this justified a release
notes entry.

Change-Id: I9cf2b0424b9cb189ac122b8274ec681302f560f7
includes/Title.php
tests/phpunit/includes/TitlePermissionTest.php