From b8a69e2c03e91deec73285f7beda9efb919ce1f8 Mon Sep 17 00:00:00 2001 From: nl6720 <nl6720@gmail.com> Date: Wed, 6 Jul 2022 21:02:00 +0300 Subject: [PATCH] archwiki: LocalSettings.php: give registered users the 'writeapi' right Adding/removing pages from the whitelist when using the Vector skin requires the write API now. Without this, regular users get this error: You're not allowed to edit this wiki through the API. --- roles/archwiki/templates/LocalSettings.php.j2 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/roles/archwiki/templates/LocalSettings.php.j2 b/roles/archwiki/templates/LocalSettings.php.j2 index 02c7e142f..dc7c0c00d 100644 --- a/roles/archwiki/templates/LocalSettings.php.j2 +++ b/roles/archwiki/templates/LocalSettings.php.j2 @@ -278,11 +278,8 @@ $wgGroupPermissions['privileged']['editprotected2'] = true; # disable user account creation via API $wgAPIModules['createaccount'] = 'ApiDisabled'; -# remove 'writeapi' right from users +# remove 'writeapi' right from unregistered users $wgGroupPermissions['*']['writeapi'] = false; -$wgGroupPermissions['user']['writeapi'] = false; -# add 'writeapi' to autoconfirmed users -$wgGroupPermissions['autoconfirmed']['writeapi'] = true; # stricter conditions for 'autoconfirmed' promotion $wgAutoConfirmAge = 86400*3; // three days # require at least 20 normal edits before granting the 'writeapi' right -- GitLab