From: Yuri Astrakhan Date: Fri, 6 Sep 2019 16:10:42 +0000 (-0500) Subject: after MW upgrade sysops unable to edit MW UI X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0607ee8e7c2030a8376e38a87a12a71015b5a0b8 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. --- 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 -%>