mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Merge "Prevent Enabling Beta Preferences for temp users"
This commit is contained in:
commit
e8204a5aca
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue