]> git.openstreetmap.org Git - chef.git/commitdiff
enable gadgets-edit rights to sysops
authorYuri Astrakhan <yuriastrakhan@gmail.com>
Sat, 7 Sep 2019 15:18:39 +0000 (10:18 -0500)
committerGitHub <noreply@github.com>
Sat, 7 Sep 2019 15:18:39 +0000 (10:18 -0500)
another issues with the new way gadgets are being used - need an extra right for sysops explicitly declared.

cookbooks/mediawiki/templates/default/LocalSettings.php.erb

index 4e5b63904f9665406d6b62b4eb503ceb24693aa2..1cceb2ab886fb59cbd9c0dc86dc9b1fb9f635a90 100644 (file)
@@ -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;