dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01c2465
)
Don't bolden pages that any anon/user could see
author
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 18 Mar 2009 21:13:34 +0000
(21:13 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 18 Mar 2009 21:13:34 +0000
(21:13 +0000)
includes/SpecialPage.php
patch
|
blob
|
history
diff --git
a/includes/SpecialPage.php
b/includes/SpecialPage.php
index
ccc9216
..
31b4383
100644
(file)
--- 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]);
}
/**