User::groupHasPermission is used for various purposes, from checking whether it makes sense to show a "hide logged-in users" on Special:NewPages to showing different error messages in some places when 'user' or 'autoconfirmed' is allowed the action to avoiding unstubbing $wgUser to check $wgUser->isAllowed( 'read' ) in the common case where 'read' permission is granted to everyone. For the OAuth work, we need to be able to catch that last type of use without interfering with the others. This change introduces User::isEveryoneAllowed() to be used for that type of check, which both makes sure the right granted to '*' isn't revoked from any group and calls a hook to allow extensions to indicate that they might remove the right. Change-Id: Idfee1b4d0613aaf52e143164acd6022459415c49 |
||
|---|---|---|
| .. | ||
| code-coverage | ||
| databases | ||
| html | ||
| php-memcached | ||
| uidesign | ||
| contenthandler.txt | ||
| database.txt | ||
| deferred.txt | ||
| design.txt | ||
| distributors.txt | ||
| doxygen_first_page.php | ||
| export-0.1.xsd | ||
| export-0.2.xsd | ||
| export-0.3.xsd | ||
| export-0.4.xsd | ||
| export-0.5.xsd | ||
| export-0.6.xsd | ||
| export-0.7.xsd | ||
| export-0.8.xsd | ||
| export-demo.xml | ||
| globals.txt | ||
| hooks.txt | ||
| language.txt | ||
| linkcache.txt | ||
| magicword.txt | ||
| maintenance.txt | ||
| memcached.txt | ||
| README | ||
| schema.txt | ||
| scripts.txt | ||
| skin.txt | ||
| title.txt | ||
| upload.txt | ||
[July 22nd 2008] The 'docs' directory contain various text files that should help you understand the most important parts of the code of MediaWiki. More in-depth documentation can be found at http://www.mediawiki.org/wiki/Manual:Code. API documentation is automatically generated and updated daily at: http://svn.wikimedia.org/doc/ You can get a fresh version using 'make doc' or mwdocgen.php in the ../maintenance/ directory. For end user / administrators, most of the documentation is located online at: http://www.mediawiki.org/wiki/Help:Contents http://www.mediawiki.org/wiki/Manual:Contents