Enable reference previews for anonymous users when not in beta

Change-Id: I605bc79626999c2e65cdceaa47dd6c4479a3d249
This commit is contained in:
Andrew Kostka 2021-05-05 16:35:03 +02:00
parent 5e22d4c317
commit 1fce62ca7b

View file

@ -158,6 +158,12 @@ class PopupsContext {
self::REFERENCE_PREVIEWS_PREFERENCE_NAME self::REFERENCE_PREVIEWS_PREFERENCE_NAME
); );
} }
// if not in Beta then enable for anonymous users
if ( $user->isAnon() ) {
return true;
}
return $user->getBoolOption( self::REFERENCE_PREVIEWS_PREFERENCE_NAME_AFTER_BETA ); return $user->getBoolOption( self::REFERENCE_PREVIEWS_PREFERENCE_NAME_AFTER_BETA );
} }