Use User->isRegistered(), not deprecated isLoggedIn()

Bug: T270450
Change-Id: I6ebf2f8040b6ac53025b5ccf503e5e221341eb09
This commit is contained in:
James D. Forrester 2020-12-17 18:37:14 -08:00
parent b9af9972c6
commit 7109c954a2

View file

@ -304,7 +304,7 @@ class RunVariableGenerator extends VariableGenerator {
bool $autocreate
) : AbuseFilterVariableHolder {
// generateUserVars records $this->user->getName() which would be the IP for unregistered users
if ( $this->user->isLoggedIn() ) {
if ( $this->user->isRegistered() ) {
$this->addUserVars( $this->user );
}