From 0607ee8e7c2030a8376e38a87a12a71015b5a0b8 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Fri, 6 Sep 2019 11:10:42 -0500 Subject: [PATCH] after MW upgrade sysops unable to edit MW UI the new version moved UI-editing rights out of sysop and its own group because large wikis may have too big of a non-techy admin community (thousands). It would be pointless for a small wiki like ours. --- cookbooks/mediawiki/templates/default/LocalSettings.php.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index e6a0866d2..b4b0ab653 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -209,6 +209,10 @@ $wgWhitelistRead = array ("Special:Userlogin"); # Prevent new user registrations except by sysops $wgGroupPermissions['*']['createaccount'] = false; +# Since 1.32 MW introduced interface-admin group to separate all UI-related rights. This makes sense for bigger sites, +# but for OSM it makes more sense to keep group structure simple. Give all interface-admin rights to sysops. +$wgGroupPermissions['sysop'] = array_merge($wgGroupPermissions['sysop'], $wgGroupPermissions['interface-admin']); + # Restrict access to the upload directory $wgUploadPath = "$wgScriptPath/img_auth.php"; <% end -%> -- 2.39.5