Manual:$wgGroupsAddToSelf/fi

From Linux Web Expert

<translate> User rights, access control and monitoring</translate>: $wgGroupsAddToSelf
Tämän avulla käyttäjät voivat lisätä itsensä tiettyihin ryhmiin toimintosivun Toiminnot:Käyttöoikeudet (Special:Userrights) kautta.
<translate> Introduced in version:</translate>1.12.0 (r29765)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(taulukko)
<translate> Default value:</translate>[]

Tiedot

$wgGroupsAddToSelf sallii käyttäjien lisätä itsensä käyttäjäryhmään.

MediaWiki version:
<translate> ≥</translate> 1.14

The syntax since 1.14 is:

$wgGroupsAddToSelf['sysop'][] = 'bot'; // ylläpitäjä voivat lisätä itsensä bottiryhmään: $wgGroupsAddToSelf['sysop'] = array( 'bot' );
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.13</tvar> is unsupported version</translate>">
1.12 – 1.13
<translate> MediaWiki versions:</translate>

The syntax of MW 1.12 - 1.13 is:

$wgGroupsAddToSelf = array( 'group1', 'group2', '...' );

Muutokset versiossa 1.14.0

In r39368, the way this variable works was changed. Before, it allowed every user to add those groups to themselves, now it can be filtered on a per-group basis.

The new syntax is $wgGroupsAddToSelf['group1'] = array( 'group2', 'group3' ); which allows any user in the group "group1" to add the groups "group2" and "group3" to themselves. The old syntax will still work for allowing every user to add groups to themselves, but it is recommended that you use $wgGroupsAddToSelf['user'] = array( 'group1', 'group2' ); instead.

You may use $wgGroupsAddToSelf['group'] = true; to allow users in that group to add every group to themselves.

Katso myös