Multiple Roles

Descrição

Este plugin permite-lhe seleccionar vários papéis para um utilizador, algo que o WordPress já suporta “nos bastidores”, mas para o qual não disponibiliza uma interface de utilização.

Os ecrãs de edição de utilizador e de adição de novo utilizador apresentarão uma lista de papéis para seleccionar, em vez do selector de papéis por omissão. O ecrã principal da lista de utilizadores também apresentará todos os papéis que um utilizador possui.

Além disso, também suporta o modo Multissite.

É tudo. Não tem configurações adicionais.

Se desejar contribuir para este plugin, não hesite em consultar o repositório do GitHub: https://github.com/chrneumann/multiple-roles

Ecrãs

Instalação

Automatic Install

  1. Log into your WordPress dashboard and go to Plugins → Add New
  2. Search for “Multiple Roles”
  3. Click “Install Now” under the Multiple Roles plugin
  4. Click “Activate Now”

Manual Install

  1. Download the plugin from the download button on this page
  2. Unzip the file, and upload the resulting multiple-roles folder to your /wp-content/plugins directory
  3. Log into your WordPress dashboard and go to Plugins
  4. Click “Activate” under the Multiple Roles plugin

Perguntas frequentes

Quem pode editar os papéis dos utilizadores?

Qualquer pessoa com a capacidade promote_users. Por omissão, isso significa apenas administradores e administradores de rede em instalações multissite.

Pode editar os seus próprios papéis?

Se for um administrador de rede numa configuração multissite, sim, pode editar os seus papéis nos sites dessa rede. Caso contrário, não. É assim que o WordPress funciona normalmente também.

Estou no ecrã de edição do utilizador, onde está a lista dos papéis de utilizador?

Encontra-se abaixo das opções normais do perfil, na secção «Permissões». Se ainda assim não conseguir encontrá-la, poderá estar na sua própria página de perfil ou poderá não dispor da capacidade promote_users.

É possível remover todos os papéis de um utilizador?

Claro. O utilizador continuará a poder iniciar e terminar sessão, mas não poderá aceder a quaisquer ecrãs de administração nem visualizar páginas privadas. No entanto, o utilizador continuará a ver, por omissão, a barra de ferramentas do WP, que apresenta ligações para os ecrãs do Painel e do Perfil; por isso, ao clicar nessas ligações, será apresentado um erro de permissão.

Avaliações

1 Julho, 2020
Thank you for this plugin, this is the cleanest interface to add multiple roles that I’ve seen. The popular User Role Editor plugin should take this as an example of good UX.
4 Maio, 2018
Installed this on my 4.9.5 site and performance was severely degraded. This was the first thing I disabled in order to troubleshoot and it was like night and day. Recommend finding an alternate solution unless this issue is addressed.
Ler todas as 15 avaliações

Contribuidores e programadores

“Multiple Roles” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

“Multiple Roles” foi traduzido para 9 locales. Obrigado aos tradutores pelas suas contribuições.

Traduza o “Multiple Roles” para o seu idioma.

Interessado no desenvolvimento?

Consulte o código, consulte o repositório SVN, ou subscreva o registo de alterações por RSS.

Registo de alterações

1.3.8

  • 13th july 2026
  • SECURITY FIX: Properly validate that submitted roles are ones the current user is actually allowed to grant
  • Fix a bug on Multisite that could lose the selected roles during user signup
  • Thanks to Na Lee for reporting the issue

1.3.6 / 1.3.7

  • 1st june 2022
  • SECURITY FIX: Validate that the user is allowed to change selected roles

1.3.5

  • 27th may 2022
  • Test the plugin against WordPress 6.0
  • Fix open issues with sanitizing text

1.3.4

  • 25th may 2022
  • Add new plugin maintainer: cneumann

1.3.2

  • 30th june 2021
  • Test the plugin against WordPress 5.7
  • Fix the use of nonce for two functions

1.3.1

  • 1st july 2020
  • Test the plugin against WordPress 5.4
  • Fix an issue when the user role could be lost because of a wrong check in the backend

1.3.0

  • 12 april 2018
  • Use ‘promote_users’ cap instead of ‘edit_users’
  • Fixed bug preventing us from unsetting a user’s roles
  • Only remove get_editable_roles() roles on update
  • Thanks to thomasfw for the contributions

1.2.0

  • 21 august 2017
  • Check compatibilty with WP 4.8.1
  • Translation of roles names : thanks to Benjamin Niess
  • Mutlisite enhancement : Use a WP 4.8 filter to easier edit signup user meta

1.1.4

  • 23 december 2016
  • Fix fatal error in new user in single site : After adding an user, a wp_die error was shown “You can’t give users that role”, it was due to changes in 1.1.2
  • Workaround to handle multisite support without breaking single site features

1.1.3

  • 22 december 2016
  • Fix fatal error in user update : After updating an user, a wp_die error was shown “You can’t give users that role”, it was due to changes in 1.1.2

1.1.2

  • 21 december 2016
  • Fix bug in multisite : After adding a new user with email confirmation, the multiple roles were not set, so the user did not have any roles on the site

1.1.1

  • 3 november 2016
  • Remove PHP closure to ensure Backward Compatibility with PHP versions < 5.3

1.1

  • 24 october 2016
  • New maintainer : Florian TIAR, you’re strongly encouraged to update this plugin
  • Add support of role checkbox in new user form (admin)
  • Add Multisite support (for new user form)
  • Add i18n support (text domain, translatable strings and pot file)
  • Add some hooks (actions and filters)
  • Fix issue where some low level users could add admin users
  • Sanitize and escape all data
  • Enhance UX of the form

1.0

  • 2015
  • Initial release