From 0670b67527502a46e551c48bf1b1911aa2a0668e Mon Sep 17 00:00:00 2001 From: Tigerfell <43786020+Tigerfell@users.noreply.github.com> Date: Sun, 27 Dec 2020 17:30:42 +0100 Subject: [PATCH] establish confirmed user's group in public wikis --- .../mediawiki/templates/default/LocalSettings.php.erb | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.39.5