* pages?
*/
public function isRestricted() {
- // DWIM: If everyone can do something, then it is not restricted
- return $this->mRestriction != '' && !User::isEveryoneAllowed( $this->mRestriction );
+ // DWIM: If anons can do something, then it is not restricted
+ return $this->mRestriction != '' && !User::groupHasPermission( '*', $this->mRestriction );
}
/**