I've tried Administer Users by Role module, but I did not see any permissions per my roles.

After several days I found: my roles had non-english names. (cyrillic)
And I did not see lines with permission by roles.

I renamed all my roles to english variants.
And now I can see permissions per roles.

Comments

errand’s picture

Thanx, man! Had the same bug

geek-merlin’s picture

Title: non English role names » Internal permission name depends on current language
Priority: Major » Critical
Issue summary: View changes

This shot me when i enabled a feature:

Warning in features rebuild of mm_permissions_role_admin_is_useradmin. No  
module defines permission "cancel users with role authenticateduser".

I found the permission is now
"cancel users with role AngemeldeterBenutzer"
and this is a german site.

So i had to set the permissions manually.

So if a simple change of language changes permission-names this makes the module unusable in not-untypical circumstances, so i'll set this critical.

AdamPS’s picture

Assigned: Unassigned » AdamPS
Status: Active » Needs review
Issue tags: +beta2

I intend to fix this as part of #2378869: Meta-issue for Beta 2 release. Please sign up as a follower of that issue and see the patch there that I would like feedback on.

The fix is to use role ID rather than role name to build the permission. We still use the name for the title that is visible to users.

I've not actually tested languages, as my sites are just English, but it seems like it should do the trick. Please can you confirm?

AdamPS’s picture

Version: 7.x-1.0-beta1 » 7.x-2.0-beta1
Status: Needs review » Closed (fixed)

Fix now available in latest release