Prevent Enabling Beta Preferences for temp users

Bug: T337776
Change-Id: I3e7c9524a405d62796dca42abe3d04fa5025dc81
This commit is contained in:
AnaïsGueyte 2023-06-08 11:38:14 -02:30
parent 808d8bcd6c
commit 1f5510bc2a

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;
}