mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Hooks#onAuthPluginAutoCreate: Only act if not default
Change-Id: If52c23b523953aabf52ef3e889a77b422a149c63
This commit is contained in:
parent
1ad77ddf91
commit
e9af948c3e
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue