Allow basic grant holders to autocreate accounts
authorGergő Tisza <tgr.huwiki@gmail.com>
Mon, 5 Aug 2019 09:40:35 +0000 (11:40 +0200)
committerGergő Tisza <tgr.huwiki@gmail.com>
Mon, 5 Aug 2019 09:43:00 +0000 (11:43 +0200)
This allows OAuth apps to create a local account if the user has
a compatible central account (and the 'basic' grant, ie. not
identification-only).

Bug: T149672
Change-Id: Idca81bb97c73a93199b7b321c09a9ae9e7f17f68

includes/DefaultSettings.php

index a3772b9..197a6f0 100644 (file)
@@ -5796,6 +5796,7 @@ $wgGrantPermissions = [];
 // @TODO: clean up grants
 // @TODO: auto-include read/editsemiprotected rights?
 
+$wgGrantPermissions['basic']['autocreateaccount'] = true;
 $wgGrantPermissions['basic']['autoconfirmed'] = true;
 $wgGrantPermissions['basic']['autopatrol'] = true;
 $wgGrantPermissions['basic']['editsemiprotected'] = true;