From: Aaron Schulz Date: Wed, 18 Mar 2009 21:13:34 +0000 (+0000) Subject: Don't bolden pages that any anon/user could see X-Git-Tag: 1.31.0-rc.0~42450 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=c6bbfa7d71065b16bd98e604742f59bd2f0b2564;p=lhc%2Fweb%2Fwiklou.git Don't bolden pages that any anon/user could see --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index ccc9216c0d..31b438395c 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -715,7 +715,9 @@ class SpecialPage * 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]); } /**