mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-27 16:50:09 +00:00
Merge "Don't set preferences for temporary accounts"
This commit is contained in:
commit
7f430a4d1f
|
@ -69,7 +69,7 @@ class RevisionSliderHooks implements DifferenceEngineViewHeaderHook, GetPreferen
|
|||
* If the user is logged in and has explictly requested to disable the extension don't load.
|
||||
*/
|
||||
$user = $differenceEngine->getUser();
|
||||
if ( $user->isRegistered() && $this->userOptionsLookup->getBoolOption( $user, 'revisionslider-disable' ) ) {
|
||||
if ( $user->isNamed() && $this->userOptionsLookup->getBoolOption( $user, 'revisionslider-disable' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue