Manual:User rights/pt

Permissões de Utilizador são permissões (tais como a capacidade de editar páginas ou bloquear utilizadores) que podem ser atribuídas a diferentes grupos de utilizadores. MediaWiki vem com uma definição predefinida de permissões utilizador e grupos de utilizadores, mas estas podem ser personalizadas. Esta página explica as permissões e os grupos predefinidos e como os personalizar.

Para obter informação sobre como adicionar e remover os utilizadores da wiki individuais dos grupos, consulte e.

Alterar permissões de grupo
Uma instalação predefinida do MediaWiki atribui determinadas permissões aos grupos predefinidos (veja abaixo). You can change the default rights by editing the array in  with the syntax.

If a member has multiple groups, they get all of the permissions from each of the groups they are in. All users, including anonymous users, are in the  group; all registered users are in the   group. In addition to the default groups, you can arbitrarily create new groups using the same array.

Exemplos
This example will disable viewing of all pages not listed in, then re-enable for registered users only:

This example will disable editing of all pages, then re-enable for users with confirmed email addresses only:

Criar um novo grupo e atribuir permissões ao mesmo
You can create new user groups by defining permissions for the according group name in  where  is the actual name of the group.

Additionally to assigning permissions, you should create these three wiki pages with fitting content:


 * (content: )
 * (content: )
 * (content: )

By default, bureaucrats can add users to, or remove them from, any group. However, if you are using and, you may need to customize those instead.

Exemplos
This example will create an arbitrary “ninja” group that can block users and delete pages, and whose edits are hidden by default in the recent changes log:

In this example, you would probably also want to create these pages:


 * (conteúdo: )
 * (conteúdo: )
 * (conteúdo: )

This will ensure that the group will be referred to as “Ninjas” throughout the interface, and a member will be referred to as a “ninja”, and overviews will link the group name to.

This example disables write access (page editing and creation) by default, creates a group named “Write”, and grants it write access. Users can be manually added to this group via Special:UserRights:

In this example, you would probably also want to create these pages:


 * (conteúdo: )
 * (conteúdo: )
 * (conteúdo: )

Remover grupos predefinidos
MediaWiki out of the box comes with a number of predefined groups. Most of these groups can be removed by unsetting the according array keys, among them. Para detalhes veja abaixo.

Exemplo
This example will eliminate the bureaucrat group entirely. It is necessary to ensure that all six of these variables are unset for any group that one wishes to remove from being listed at Special:ListGroupRights; however, merely unsetting $wgGroupPermissions will suffice to remove it from Special:UserRights. This code should be placed after any  lines that add extensions such as  containing code that gives bureaucrats group permissions by default.

In some extensions (Flow, Semantic MediaWiki, etc.), rights are added during extension registration or in a registration function. In this case, it could be necessary to use a registration function in LocalSettings.php to remove some predefined user groups:

Nota no grupo chamado de «utilizador»
With the above mechanism, you can remove the groups sysop, bureaucrat and bot, which - if used - can be assigned through the usual user permission system. However, it is currently impossible to remove the  group. This group is not assigned through the usual permission system. Instead, every logged in user automatically is member of that group. This is hardcoded in MediaWiki and currently cannot be changed easily.

Lista de permissões
Os seguintes direitos de utilizador estão disponíveis na versão mais recente do MediaWiki. Se estiver a utilizar uma versão mais antiga, consulte “Especial:Versão” na sua wiki e veja se a sua versão faz parte da coluna “Versões”.

Lista de grupos
Os seguintes grupos estão disponíveis na versão mais recente do MediaWiki. Se estiver a utilizar uma versão antiga, então alguns destes grupos podem não estar implementados.

From MW 1.12, you can create your own groups into which users are automatically promoted (as with autoconfirmed and emailconfirmed) using. You can even create any custom group by just assigning rights to them.

Direitos predefinidos
Os direitos predefinidos estão definidos nas.
 * Default values in HEAD version: https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/DefaultSettings.php
 * The default values in the latest stable MediaWiki release, version, are available here: https://phabricator.wikimedia.org/diffusion/MW/browse//includes/DefaultSettings.php
 * Additional rights: you should be able to list all the permissions available on your wiki by running.

Adicionar novos direitos
Information for coders only follows.

If you're adding a new right in core, for instance to control a new special page, you are required to add it to the list of available rights in,  (example). If you're, you instead need to use.

You probably also want to assign it to some user group by editing described above.

If you want this right to be accessible to external applications by  or by bot passwords, then you will need to add it to a grant by editing.

You also need to add  and   interface messages to /languages/i18n/en.json (with documentation in qqq.json). The right-* messages can be seen on Special:ListGroupRights and the action-* messages are used in a sentence like "You do not have permission to ...".

Consulte também

 * Special:ListGroupRights – links to this help page and might contain not yet documented rights
 * – help page describing use of the Special:Userrights interface (for bureaucrats)
 * – information about managing and the assignment of user groups.
 * – exemplos
 * – Muitas extensões relacionadas com os direitos do utilizador
 * – exemplos
 * – Muitas extensões relacionadas com os direitos do utilizador
 * – Muitas extensões relacionadas com os direitos do utilizador
 * – Muitas extensões relacionadas com os direitos do utilizador