Podręcznik:$wgRemoveGroups

From mediawiki.org
This page is a translated version of the page Manual:$wgRemoveGroups and the translation is 71% complete.
User rights, access control and monitoring: $wgRemoveGroups
Kontroluje kto może usuwać użytkowników z grup poprzez Special:Userrights.
Wprowadzono w wersji:1.11.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(tablica)
Domyślna wartość:[]

Szczegóły

Jeżeli grupa może usuwać wszystkie uprawnienia innym (przykład: biurokraci mogą usuwać dowolne prawa):

$wgRemoveGroups['bureaucrat'] = true;

Jeżeli grupa może odbierać tylko niektóre uprawnienia innym (przykład: biurokraci mogą usuwać tylko z grup administratorzy i boty):

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

Zwróć uwagę, że grupy mogące nadawać tylko niektóre prawa (tak jak biurokraci w tym przykładzie) muszą mieć ustawione uprawnienie "userrights" na "false", w innym wypadku będą mogły nadal usuwać z dowolnych grup.

Możesz także definiować $wgRemoveGroups w taki sposób, który nie spowoduje nadpisywania definicji pochodzących z rozszerzeń.

$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.

Zobacz też