Split out checkExecutePermissions() function from userCanExecute() in FormSpecialPage...
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 26 Oct 2011 06:22:25 +0000 (06:22 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 26 Oct 2011 06:22:25 +0000 (06:22 +0000)
commit44ff769519fb945f31e6674e80b395cbe37617fb
tree5d82500e61116ec910f97b58be538149ceb077fe
parent976c6abcfc752e6b2177b30bf540bf858c7d85d8
Split out checkExecutePermissions() function from userCanExecute() in FormSpecialPage. The former handles actual execute() calls and throws exceptions, the later inherits its purpose from SpecialPage. It just checks the page restriction to see if a user generally *could* execute. This avoids the breakage that came up in r100723 where Special:SpecialPages was throwing permission errors due to the getUsablePages() call.
includes/SpecialPage.php
includes/specials/SpecialLockdb.php
includes/specials/SpecialPasswordReset.php
includes/specials/SpecialUnlockdb.php