Allow users to choose roles
Flying Drupalist - December 1, 2008 - 16:57
| Project: | RoleAssign |
| Version: | 6.x-1.0-beta2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
I'm not sure if this module is even able to do this, I thought it might, but reading the documentation it seems like it doesn't.
Basically, I have 2 roles that I want all users to have access to, and I want all users to be able to switch between the two roles at will. But I don't want all users to be able to administrate users. Can this module do this? Thanks.

#1
Change the line 131 of roleassign.module from this:
if (!user_access('administer users') || !user_access('assign roles')) {to this one:
if (!user_access('assign roles')) {I propose this change in code, because do not really see the need for the "administrate users" permission in those use cases.