Manual:$wgRemoveGroups/fi

From Linux Web Expert

Revision as of 13:55, 13 April 2024 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> User rights, access control and monitoring</translate>: $wgRemoveGroups
Määrittää, kuka voi poistaa käyttäjiä tietyistä käyttäjäryhmistä käyttäen toimintosivua Toiminnot:Käyttöoikeudet.
<translate> Introduced in version:</translate>1.11.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(taulukko)
<translate> Default value:</translate>[]

Tiedot

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

$wgRemoveGroups['bureaucrat'] = true;

Jos ryhmä voi poistaa vain tiettyjä oikeuksia (esimerkiksi: byrokraatit voivat poistaa vain ylläpitäjä- ja bottiryhmistä):

$wgRemoveGroups['bureaucrat'] = array( 'sysop', 'bot' );
MediaWiki version:
<translate> ≥</translate> 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';

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've already been removed from that group and that the groups you are in do not allow the removal of a user from other groups.

Once a user has been removed from a group, defined by this setting the group checkbox for this group will only show up if $wgAddGroups is also set for the group in question.

Katso myös