mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-13 17:27:20 +00:00
Use User->isRegistered(), not deprecated isLoggedIn()
Bug: T270450 Change-Id: I6ebf2f8040b6ac53025b5ccf503e5e221341eb09
This commit is contained in:
parent
b9af9972c6
commit
7109c954a2
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue