Merge "Don't set preferences for temporary accounts"

This commit is contained in:
jenkins-bot 2023-06-05 06:21:59 +00:00 committed by Gerrit Code Review
commit 7f430a4d1f

View file

@ -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;
}