Opas:$wgAddGroups

From mediawiki.org
This page is a translated version of the page Manual:$wgAddGroups and the translation is 60% complete.
User rights, access control and monitoring: $wgAddGroups
Määrittää, kuka voi lisätä tiettyjä käyttäjäryhmiä toimintosivua Toiminnot:Käyttöoikeudet käyttäen.
Introduced in version:1.11.0
Removed in version:still in use
Allowed values:(taulukko)
Default value:[]

Tiedot

MediaWiki version:
1.12

Oletuksena byrokraatti-käyttäjäryhmässä olevat käyttäjät voivat myöntää kaikki oikeudet seuraavan asetuksen vuoksi:

$wgGroupPermissions['bureaucrat']['userrights'] = true;

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 add all groups.

$wgGroupPermissions['bureaucrat']['userrights'] = false;

Alternatively, $wgAddGroups can be defined without potentially overwriting an extension's definition:

$wgAddGroups['bureaucrat'][] = 'sysop';
$wgAddGroups['bureaucrat'][] = 'bot';
MediaWiki version:
1.11

Jos ryhmä voi lisätä minkä tahansa oikeuden (esimerkiksi: byrokraatit voivat lisätä minkä tahansa oikeuden):

$wgAddGroups['bureaucrat'] = true;

Jos ryhmä voi lisätä vain joitain oikeuksia (esimerkiksi: byrokraatit voivat lisätä vain ylläpitäjä- ja bottiryhmiä):

$wgAddGroups['bureaucrat'] = [ 'sysop', 'bot' ];

Troubleshooting

Not seeing permission checkboxes

If after setting this, you do not see the group checkboxes on the Special:Userrights page for a particular user, it might mean that they're already in that group and that the groups you are in do not allow the removal of a user from the set groups.

Once a user is in a group, defined by this setting the group checkboxes will only show up if $wgRemoveGroups is also set for the group in question.

Katso myös