Fix SpecialPage::isRestricted(), broken by I41edb091 (
22dd67e) which
inverted the group permission check. Seems to only affect
Special:SpecialPages. Bug 41294.
Change-Id: I8685eaeb4a688cc8e205afdb1639c08e4a2bd3da
*/
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 );
}
/**