Allow User::isAllowed() to take varargs. "is allowed X or Y" is by far the more...
authorHappy-melon <happy-melon@users.mediawiki.org>
Fri, 18 Mar 2011 14:48:21 +0000 (14:48 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Fri, 18 Mar 2011 14:48:21 +0000 (14:48 +0000)
commit81852ea1a64a592255cecfd15d7a28a2ec22a248
treec98c588ce31d6de1f7edd867b60871bb896732dc
parent4d302b466e6bde5120903405a6d50cd022b8a93e
Allow User::isAllowed() to take varargs.  "is allowed X or Y" is by far the more common multiple permission check in core, so this is now the behaviour of isAllowed( X, Y ); also add isAllowedAll(...) for testing "is allowed X and Y".  Has the nice side effect of adding visibility to a very old function.
includes/Article.php
includes/HistoryPage.php
includes/ImagePage.php
includes/ProtectionForm.php
includes/Title.php
includes/User.php
includes/api/ApiFileRevert.php
includes/specials/SpecialImport.php