From: Yuri Astrakhan Date: Sat, 7 Sep 2019 15:18:39 +0000 (-0500) Subject: enable gadgets-edit rights to sysops X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/a9132885c1fbb83c7889b0b6e9c040fa2eab618e?hp=af59bd4e2e1f9f541e65cd34f871ac093c6ff3b5 enable gadgets-edit rights to sysops another issues with the new way gadgets are being used - need an extra right for sysops explicitly declared. --- diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index 4e5b63904..1cceb2ab8 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -204,6 +204,11 @@ unset( $wgRemoveGroups['interface-admin'] ); unset( $wgGroupsAddToSelf['interface-admin'] ); unset( $wgGroupsRemoveFromSelf['interface-admin'] ); +# The v1.32+ gadget system also requires two additional rights +# See https://www.mediawiki.org/wiki/Extension:Gadgets +$wgGroupPermissions['sysop']['gadgets-edit'] = true; +$wgGroupPermissions['sysop']['gadgets-definition-edit'] = true; + <% if @mediawiki[:private_accounts] -%> # Prevent new user registrations except by existing users $wgGroupPermissions['*']['createaccount'] = false;