Don't check anon permissions for maint scripts in autoCreateUser()
authorJames Montalvo <edwin.j.montalvo@nasa.gov>
Wed, 23 Jan 2019 20:14:37 +0000 (14:14 -0600)
committerGergő Tisza <tgr.huwiki@gmail.com>
Fri, 25 Jan 2019 01:45:10 +0000 (17:45 -0800)
commitddf37fec6d3e7c6a382dc94087e380864eac60d4
tree0f632555fd2fbbcffba13c448de4c2daacfe5edf
parent904049846c5b24d9d0cba907a61768bd27d2f226
Don't check anon permissions for maint scripts in autoCreateUser()

AuthManager::autoCreateUser() causes createAndPromote.php to give error
"Automatic account creation is not allowed." when
$wgGroupPermissions['*']['createaccount']=false is set. Anonymous user
checks should be skipped for maintenance scripts.

Change-Id: Ib61889a758e542abe991707d8b7853a25cfed8e9
includes/auth/AuthManager.php
tests/phpunit/includes/auth/AuthManagerTest.php