Update LocalSettings.php.erb
authorYuri Astrakhan <yuriastrakhan@gmail.com>
Fri, 6 Sep 2019 17:54:13 +0000 (12:54 -0500)
committerGitHub <noreply@github.com>
Fri, 6 Sep 2019 17:54:13 +0000 (12:54 -0500)
cookbooks/mediawiki/templates/default/LocalSettings.php.erb

index b4b0ab6..ee14cdc 100644 (file)
@@ -211,7 +211,14 @@ $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']);
+# Also remove the interface-admin group to avoid confusion.
+$wgGroupPermissions['sysop'] = array_merge( $wgGroupPermissions['sysop'], $wgGroupPermissions['interface-admin'] );
+unset( $wgGroupPermissions['interface-admin'] );
+unset( $wgRevokePermissions['interface-admin'] );
+unset( $wgAddGroups['interface-admin'] );
+unset( $wgRemoveGroups['interface-admin'] );
+unset( $wgGroupsAddToSelf['interface-admin'] );
+unset( $wgGroupsRemoveFromSelf['interface-admin'] );
 
 # Restrict access to the upload directory
 $wgUploadPath = "$wgScriptPath/img_auth.php";