Merge "Prevent Enabling Beta Preferences for temp users"

This commit is contained in:
jenkins-bot 2023-06-12 19:10:02 +00:00 committed by Gerrit Code Review
commit e8204a5aca

View file

@ -172,7 +172,7 @@ class PopupsContext {
);
}
return !$user->isRegistered() || $this->userOptionsLookup->getBoolOption(
return !$user->isNamed() || $this->userOptionsLookup->getBoolOption(
$user, self::REFERENCE_PREVIEWS_PREFERENCE_NAME_AFTER_BETA
);
}
@ -202,7 +202,7 @@ class PopupsContext {
* @return bool
*/
public function shouldSendModuleToUser( \User $user ) {
if ( !$user->isRegistered() ) {
if ( !$user->isNamed() ) {
return true;
}