| Project: | U Create |
| Version: | 6.x-1.0-beta2 |
| Component: | ucreate.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
Thanks for a great and very useful module! The one thing that this does not do, that I desperately need is that it does not appear to be able to limit the roles in which a non-admin user can create a new user in.
Example:
I have the following roles: "Corp", "Manager", "Instructor", "Student"
A Manager is an admin in it's Organic Group "ABC School" so I want to use UCreate to allow Managers to create new users in the their OG but I also need to limit the roles in which they can create a new user in, to only Instructors or Students. I do not want to allow them to create a new user with the "Corp" or "Manager" roles.
If you do not think this would be needed as a global add in the module, could you possibly give me a "personal patch" to apply to the module, so this would work for my scenario?
Would be greatly appreciated!!!
Comments
#1
I was looking for similar functionality in this module. I have a made a quick patch - nothing fancy or official, but it gets the job done. This patch will add an Excluded Roles section to the ucreate admin settings. Just select the roles that you do not want available to those with 'create user' permissions.
This patch applies to 6.x-1.0-beta2.
to apply patch:
patch -b -p0 < ucreate_excluded_roles.patch#2
recrit, absolutely perfect!
Exactly what I needed!
Thanks for the patch and your perfect timing... I have to deliver this project tomorrow!!!
...you rock!
#3
no problem. Good to hear everything worked out for your project.
#4
Alternatively, this module could work with Role Delegation, which makes everything a lot more granular.
I'm working on a project that needs exactly this. With role delegation, you can select which roles a role can assign to users, and u_create will respect those permissions on the user creation form.
I will try to work on something of this kind.
#5
The possible workaround for me would be set the default roles to the one I want (only works for a single set) and remove the "assign roles" permission for ucreate.
#6
#1 worked perfect for me. Role Delegation didn't work at all as described in #4 though. The Ucreate form did not reflect the Role Delegations.
#7
That's precisely why I mentioned it could be implemented.
#8
franz if you ever get this working I'm very interested.
subscribing
#9
subscribe
#10
subscribe -- we're also interested in the Role Delegation approach
#11
A working patch, adding permissions defining which role each role can assign, is available in this issue:
http://drupal.org/node/825410
This seems to address the requirement requested here, so I've marked this as a duplicate.