Merge "Hooks#onAuthPluginAutoCreate: Only act if not default"

This commit is contained in:
jenkins-bot 2016-04-01 14:20:23 +00:00 committed by Gerrit Code Review
commit 743b53c4e3

View file

@ -956,6 +956,7 @@ class VisualEditorHooks {
public static function onAuthPluginAutoCreate( $user ) {
if (
RequestContext::getMain()->getConfig()->get( 'VisualEditorAutoAccountEnable' ) &&
!User::getDefaultOption( 'visualeditor-editor' ) &&
$user->isLoggedin()
) {
$user->setOption( 'visualeditor-enable', 1 );