From c6bbfa7d71065b16bd98e604742f59bd2f0b2564 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 18 Mar 2009 21:13:34 +0000 Subject: [PATCH] Don't bolden pages that any anon/user could see --- includes/SpecialPage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]); } /** -- 2.20.1