r48537 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48536‎ | r48537 | r48538 >
Date:21:13, 18 March 2009
Author:aaron
Status:ok
Tags:
Comment:
Don't bolden pages that any anon/user could see
Modified paths:
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPage.php
@@ -715,7 +715,9 @@
716716 * pages?
717717 */
718718 public function isRestricted() {
719 - return $this->mRestriction != '';
 719+ global $wgGroupPermissions;
 720+ // DWIM: If all anons can do something, then it is not restricted
 721+ return $this->mRestriction != '' && empty($wgGroupPermissions['*'][$this->mRestriction]);
720722 }
721723
722724 /**

Status & tagging log