From: Tigerfell <43786020+Tigerfell@users.noreply.github.com> Date: Sun, 27 Dec 2020 16:30:42 +0000 (+0100) Subject: establish confirmed user's group in public wikis X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/0670b67527502a46e551c48bf1b1911aa2a0668e establish confirmed user's group in public wikis --- diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index d425bb7fa..466959c67 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -230,6 +230,13 @@ $wgGroupPermissions['*']['createaccount'] = false; $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;