Closed (fixed)
Project:
Auto Assign Role
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2012 at 06:12 UTC
Updated:
28 Mar 2013 at 14:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
anzi31 commentedThis occurs only if you have both Automatic and User Choice enabled.
Comment #2
anzi31 commentedWhen a user with a role that has the "Administer users" permission visits the admin/people/create, and the "user role assignment" is enabled, then the "user choice" fieldset should be hidden to avoid confusion.
Possible patch:
a. In autoassignrole.module, change:
function autoassignrole_form_user_register_form_alter(&$form, &$form_state) {
if (variable_get("autoassignrole_user_active", 0)) {
to
function autoassignrole_form_user_register_form_alter(&$form, &$form_state) {
if (variable_get("autoassignrole_user_active", 0) && !user_access('Administer users')) {
Comment #3
amitgoyal commentedLooks good to me!
Comment #4
drumm"administer users"should not be capitalized.Comment #5
damienmckennaThis fixes the issue drumm mentioned in #4.
Comment #6
damienmckennaCommitted.
Comment #7
damienmckennaClosing this to clean up the issue queue as 7.x-1.0-beta1 was released.