Jump to content

Manual:$wgRemoveGroups

From mediawiki.org
Revision as of 15:19, 26 October 2014 by Steinsplitter (talk | contribs) (Marked this version for translation)
User rights, access control and monitoring: $wgRemoveGroups
Controls who can remove specifics groups using Special:Userrights.
Introduced in version:1.11.0
Removed in version:Still in use
Allowed values:(array)
Default value:array()

Details

If a group can remove any right (example: bureaucrats can remove any right):

$wgRemoveGroups['bureaucrat'] = true;

If a group remove only some rights (example: bureaucrats can remove only sysop and bot groups):

$wgRemoveGroups['bureaucrat'] = array( 'sysop', 'bot' );
MediaWiki version:
1.12


Note that groups which may only grant some rights (like bureaucrats in this example) need to have the userrights privilege set to false, otherwise they will still be able to remove all groups.

You can also define $wgRemoveGroups in a way that does not overwrite an extension's definition:

$wgRemoveGroups['bureaucrat'][] = 'sysop';
$wgRemoveGroups['bureaucrat'][] = 'bot';

See also

[[Category:Permission variablesTemplate:Translation|RemoveGroups]]