]> git.openstreetmap.org Git - chef.git/commitdiff
establish confirmed user's group in public wikis
authorTigerfell <43786020+Tigerfell@users.noreply.github.com>
Sun, 27 Dec 2020 16:30:42 +0000 (17:30 +0100)
committerGrant <github@firefishy.com>
Wed, 3 Feb 2021 14:11:42 +0000 (14:11 +0000)
cookbooks/mediawiki/templates/default/LocalSettings.php.erb

index d425bb7fa39dd52dff2b3504df74fe4401704e61..466959c678153d4572be7311211b23cd57970470 100644 (file)
@@ -230,6 +230,13 @@ $wgGroupPermissions['*']['createaccount'] = false;
 $wgUploadPath = "$wgScriptPath/img_auth.php";
 <% end -%>
 
 $wgUploadPath = "$wgScriptPath/img_auth.php";
 <% end -%>
 
+<% if not(@mediawiki[:private_accounts]) and not(@mediawiki[:private_site]) -%>
+# user group "confirmed" with identical rights as "autoconfirmed", but assigned manually by sysops
+$wgGroupPermissions['confirmed'] = $wgGroupPermissions['autoconfirmed'];
+$wgAddGroups['sysop'][] = 'confirmed';
+$wgRemoveGroups['sysop'][] = 'confirmed';
+<% end -%>
+
 # Allow Subpages on Main Namespace
 $wgNamespacesWithSubpages[NS_MAIN] = true;
 
 # Allow Subpages on Main Namespace
 $wgNamespacesWithSubpages[NS_MAIN] = true;