Jump to content

Руководство:Настройка прав участников в MediaWiki

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

По умолчанию в MediaWiki есть несколько групп участников, которые могут дать участнику набор прав. См. также список групп.

Для получения информации о пользовательских правах и группах по умолчанию и о том, как их настроить, см. Руководство:Права пользователя . For more information about how to add and remove individual wiki users from groups, see Справка:Права и группы участников .

Special:UserRights

Версия MediaWiki:
1.10

There is a simple interface (Special:UserRights) for adding a user to or removing a user from one or more user groups. To do this the acting user must have the userrights user right, which by default is granted to the Бюрократы user group. You can access Special:UserRights directly or via Special:SpecialPages in the toolbox on the left. You can also view the rights an individual group has by accessing the Special:UserGroupRights special page.

For help in using Special:UserRights, refer to Справка:Права и группы участников .

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

С командной строки

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

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

С исходного кода

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()

Связанные страницы