mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Enable reference previews for anonymous users when not in beta
Change-Id: I605bc79626999c2e65cdceaa47dd6c4479a3d249
This commit is contained in:
parent
5e22d4c317
commit
1fce62ca7b
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue