Revision: 48537
Author: aaron
Date: 2009-03-18 21:13:34 +0000 (Wed, 18 Mar 2009)
Log Message:
-----------
Don't bolden pages that any anon/user could see
Modified Paths:
--------------
trunk/phase3/includes/SpecialPage.php
Modified: trunk/phase3/includes/SpecialPage.php
===================================================================
--- trunk/phase3/includes/SpecialPage.php 2009-03-18 20:55:37 UTC (rev
48536)
+++ trunk/phase3/includes/SpecialPage.php 2009-03-18 21:13:34 UTC (rev
48537)
@@ -715,7 +715,9 @@
* pages?
*/
public function isRestricted() {
- return $this->mRestriction != '';
+ global $wgGroupPermissions;
+ // DWIM: If all anons can do something, then it is not
restricted
+ return $this->mRestriction != '' &&
empty($wgGroupPermissions['*'][$this->mRestriction]);
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs