Podręcznik:Przydzielanie użytkownika do grup w MediaWiki

From mediawiki.org
This page is a translated version of the page Manual:Setting user groups in MediaWiki and the translation is 63% complete.

Domyślnie, MediaWiki zawiera kilka grup użytkowników, które mogą przyznać użytkownikowi zestaw uprawnień. Zobacz też listę grup.

Specjalna:Uprawnienia

Wersja MediaWiki:
1.10

Jest podstawowy interfejs (Special:UserRights) do dodawania i usuwania użytkowników z grup użytkowników. Aby tego dokonać, użytkownik, które chce zmieniać uprawnienia, musi mieć uprawnienie userrights, które domyślnie jest przypisane do grupy Biurokraci. Możesz dostać się do Special:UserRights bezpośrednio lub poprzez Special:SpecialPages z menu Narzędzia po lewej. You can also view the rights an individual group has by accessing the Special:UserGroupRights special page.

Aby uzyskać pomoc na temat używania strony Special:UserRights, przejdź do Pomoc: Prawa i grupy użytkownika .

Poprzez API

If you are developing a gadget, a bot (an admin bot) or other stuff that should be able to change user's groups through the API, see the page API:User group membership .

From the command line

The maintenance script createAndPromote.php can add groups to a user from the command line: php maintenance/createAndPromote.php Example --sysop

There is no way to remove a group from a user from the command line, without directly modifying the database.

Z poziomu kodu (dla programistów)

If you are developing a MediaWiki extension such as a custom authentication manager or other stuff that should be able to change user's groups, you can have a look at these methods:

  • User::addGroup()
  • User::removeGroup()

Tematy pokrewne