mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 15:16:50 +00:00
Prevent Enabling Beta Preferences for temp users
Bug: T337776 Change-Id: I3e7c9524a405d62796dca42abe3d04fa5025dc81
This commit is contained in:
parent
808d8bcd6c
commit
1f5510bc2a
|
@ -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