/** * This will add the patrol group **/ $wgGroupPermissions['patrol']['patrol'] = true; $wgGroupPermissions['patrol']['rollback'] = true; $wgGroupPermissions['patrol']['autopatrol'] = true; /** * This will add the autopatrol group **/ $wgGroupPermissions['autopatrol']['autopatrol'] = true; /** * This will give sysops access to the Special:Userrights page **/ $wgGroupPermissions['sysop']['userrights'] = true; /** * This will restrict sysops to add/remove only the specified groups in the Special:Userrights page **/ $wgAddGroups['sysop'] = array( 'patrol', 'autopatrol' ); $wgRemoveGroups['sysop'] = array( 'autopatrol' ); /** * This will give bureaucrats access to the Special:Userrights page **/ $wgGroupPermissions['bureaucrat']['userrights'] = true; /** * This will restrict bureaucrats to add/remove only the specified groups in the Special:Userrights page **/ $wgAddGroups['bureaucrat'] = array( 'bureaucrat', 'sysop', 'bot', 'patrol', 'autopatrol' ); $wgRemoveGroups['bureaucrat'] = array( 'bot', 'patrol', 'autopatrol' );