From ff76889d86b9fae3f1cd869af449927470bbb131 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 23 Oct 2012 16:00:37 +1100 Subject: [PATCH] Fix SpecialPage::isRestricted() Fix SpecialPage::isRestricted(), broken by I41edb091 (22dd67e) which inverted the group permission check. Seems to only affect Special:SpecialPages. Bug 41294. Change-Id: I8685eaeb4a688cc8e205afdb1639c08e4a2bd3da --- includes/SpecialPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index a72c1af566..9442869774 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -522,7 +522,7 @@ class SpecialPage { */ public function isRestricted() { // DWIM: If all anons can do something, then it is not restricted - return $this->mRestriction != '' && User::groupHasPermission( '*', $this->mRestriction ); + return $this->mRestriction != '' && !User::groupHasPermission( '*', $this->mRestriction ); } /** -- 2.20.1